Skip to contentSkip to conversation

firewire: core: remove an always false test

PATCH New Stefan Richter 1 participant 1 message Mar 24, 2013 Firewire

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 firewire: core: remove an always false test

struct fw_cdev_allocate_iso_resource.bandwidth is unsigned.

---
 drivers/firewire/core-cdev.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/firewire/core-cdev.c +1 -2
@@ -1365,8 +1365,7 @@ static int init_iso_resource(struct clie
 	int ret;
 
 	if ((request->channels == 0 && request->bandwidth == 0) ||
-	    request->bandwidth > BANDWIDTH_AVAILABLE_INITIAL ||
-	    request->bandwidth < 0)
+	    request->bandwidth > BANDWIDTH_AVAILABLE_INITIAL)
 		return -EINVAL;
 
 	r  = kmalloc(sizeof(*r), GFP_KERNEL);
Signature · 3 lines
Stefan Richter
-=====-===-= --== ==---
http://arcgraph.de/sr/