projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df7ce66
)
firewire: core: remove an always false test
author
Stefan Richter
<stefanr@s5r6.in-berlin.de>
Sun, 24 Mar 2013 16:31:09 +0000
(17:31 +0100)
committer
Stefan 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
patch
|
blob
|
history
diff --git
a/drivers/firewire/core-cdev.c
b/drivers/firewire/core-cdev.c
index 27ac423ab25e26e3a78defb81fcdad21b1050f9d..13573e8f518fdd0d893e15cbb1537a7c9d8b2acb 100644
(file)
--- 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);