Skip to content

Commit bdabfa5

Browse files
author
Stefan Richter
committed
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>
1 parent df7ce66 commit bdabfa5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎drivers/firewire/core-cdev.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1366,8 +1366,7 @@ static int init_iso_resource(struct client *client,
13661366
int ret;
13671367

13681368
if ((request->channels == 0 && request->bandwidth == 0) ||
1369-
request->bandwidth > BANDWIDTH_AVAILABLE_INITIAL ||
1370-
request->bandwidth < 0)
1369+
request->bandwidth > BANDWIDTH_AVAILABLE_INITIAL)
13711370
return -EINVAL;
13721371

13731372
r = kmalloc(sizeof(*r), GFP_KERNEL);

0 commit comments

Comments
 (0)