ar9170: wrong test on outlen in ar9170_usb_exec_cmd() ?
authorRoel Kluin <roel.kluin@gmail.com>
Sun, 26 Apr 2009 12:40:59 +0000 (14:40 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 6 May 2009 19:14:45 +0000 (15:14 -0400)
remove redundant test: outlen is unsigned

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: Christian Lamparter <chunkeey@web.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ar9170/usb.c

index 368fc2d426419d1e3e2942b3d2d356cb06a9ad66..d7b562dcebd204702c2513a950285f80e89bf2be 100644 (file)
@@ -350,7 +350,7 @@ static int ar9170_usb_exec_cmd(struct ar9170 *ar, enum ar9170_cmd cmd,
                goto err_unbuf;
        }
 
-       if (outlen >= 0 && aru->readlen != outlen) {
+       if (aru->readlen != outlen) {
                err = -EMSGSIZE;
                goto err_unbuf;
        }