]> Pileus Git - ~andy/linux/commitdiff
wlcore: Remove redundant check on unsigned variable
authorTushar Behera <tushar.behera@linaro.org>
Fri, 16 Nov 2012 06:50:46 +0000 (12:20 +0530)
committerLuciano 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

index c86bb00c24884d355e93af45917b30defe86f220..93f801dc94e4e3abf8ef0ed8fc2c5b97475b0830 100644 (file)
@@ -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;