From: Stefan Richter Date: Sun, 24 Mar 2013 16:31:09 +0000 (+0100) Subject: firewire: core: remove an always false test X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=bdabfa54635e5d95a5aa2087794f203cc1915f7a;p=linux-beck.git firewire: core: remove an always false test struct fw_cdev_allocate_iso_resource.bandwidth is unsigned. Signed-off-by: Stefan Richter --- diff --git a/drivers/firewire/core-cdev.c b/drivers/firewire/core-cdev.c index 27ac423ab25e..13573e8f518f 100644 --- a/drivers/firewire/core-cdev.c +++ b/drivers/firewire/core-cdev.c @@ -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);