Skip to content

Commit

Permalink
firewire: core: remove an always false test
Browse files Browse the repository at this point in the history
struct fw_cdev_allocate_iso_resource.bandwidth is unsigned.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
  • Loading branch information
Stefan Richter committed Apr 28, 2013
1 parent df7ce66 commit bdabfa5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/firewire/core-cdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bdabfa5

Please sign in to comment.