projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25b08bf
)
wlcore: Remove redundant check on unsigned variable
author
Tushar Behera
<tushar.behera@linaro.org>
Fri, 16 Nov 2012 06:50:46 +0000
(12:20 +0530)
committer
Luciano Coelho
<luca@coelho.fi>
Fri, 16 Nov 2012 17:53:01 +0000
(19:53 +0200)
No need to check whether unsigned variable is less than 0.
CC: Luciano Coelho <coelho@ti.com>
CC: linux-wireless@vger.kernel.org
CC: netdev@vger.kernel.org
Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
Signed-off-by: Luciano Coelho <luca@coelho.fi>
drivers/net/wireless/ti/wlcore/debugfs.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ti/wlcore/debugfs.c
b/drivers/net/wireless/ti/wlcore/debugfs.c
index c86bb00c24884d355e93af45917b30defe86f220..93f801dc94e4e3abf8ef0ed8fc2c5b97475b0830 100644
(file)
--- a/
drivers/net/wireless/ti/wlcore/debugfs.c
+++ b/
drivers/net/wireless/ti/wlcore/debugfs.c
@@
-993,7
+993,7
@@
static ssize_t sleep_auth_write(struct file *file,
return -EINVAL;
}
- if (value
< 0 || value
> WL1271_PSM_MAX) {
+ if (value > WL1271_PSM_MAX) {
wl1271_warning("sleep_auth must be between 0 and %d",
WL1271_PSM_MAX);
return -ERANGE;