summaryrefslogtreecommitdiffstats
path: root/drivers/firewire
diff options
context:
space:
mode:
authorStefan Richter <stefanr@s5r6.in-berlin.de>2013-03-24 17:31:09 +0100
committerStefan Richter <stefanr@s5r6.in-berlin.de>2013-04-28 23:36:43 +0200
commitbdabfa54635e5d95a5aa2087794f203cc1915f7a (patch)
treefc5e739c323cdd9fcf47c9b9be1247b7ef5380f9 /drivers/firewire
parentdf7ce66363bf66b2e8ef6245f5f42c2f6fb0db52 (diff)
downloadop-kernel-dev-bdabfa54635e5d95a5aa2087794f203cc1915f7a.zip
op-kernel-dev-bdabfa54635e5d95a5aa2087794f203cc1915f7a.tar.gz
firewire: core: remove an always false test
struct fw_cdev_allocate_iso_resource.bandwidth is unsigned. Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/firewire')
-rw-r--r--drivers/firewire/core-cdev.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/firewire/core-cdev.c b/drivers/firewire/core-cdev.c
index 27ac423..13573e8 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);
OpenPOWER on IntegriCloud