]> git.karo-electronics.de Git - linux-beck.git/commitdiff
firewire: core: remove an always false test
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Sun, 24 Mar 2013 16:31:09 +0000 (17:31 +0100)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Sun, 28 Apr 2013 21:36:43 +0000 (23:36 +0200)
struct fw_cdev_allocate_iso_resource.bandwidth is unsigned.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/core-cdev.c

index 27ac423ab25e26e3a78defb81fcdad21b1050f9d..13573e8f518fdd0d893e15cbb1537a7c9d8b2acb 100644 (file)
@@ -1366,8 +1366,7 @@ static int init_iso_resource(struct client *client,
        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);