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:
d4d7512
)
usb: misc: remove unnecessary code
author
Gustavo A. R. Silva
<
[email protected]
>
Mon, 20 Feb 2017 23:28:46 +0000
(17:28 -0600)
committer
Greg Kroah-Hartman
<
[email protected]
>
Fri, 17 Mar 2017 04:24:49 +0000
(13:24 +0900)
'val' is an unsigned variable, and less-than-zero comparison of an unsigned
variable is never true.
Addresses-Coverity-ID:
1230257
Signed-off-by: Gustavo A. R. Silva <
[email protected]
>
Reviewed-by: Peter Senna Tschudin <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/usb/misc/lvstest.c
patch
|
blob
|
history
diff --git
a/drivers/usb/misc/lvstest.c
b/drivers/usb/misc/lvstest.c
index b7fc978724de64998a8c322c54b7518df599a33f..c731a75f28ee6d60e39b534b92d49bdd34d885dd 100644
(file)
--- a/
drivers/usb/misc/lvstest.c
+++ b/
drivers/usb/misc/lvstest.c
@@
-193,7
+193,7
@@
static ssize_t u2_timeout_store(struct device *dev,
return ret;
}
- if (val
< 0 || val
> 127)
+ if (val > 127)
return -EINVAL;
ret = lvs_rh_set_port_feature(hdev, lvs->portnum | (val << 8),