ar9170usb: unsigned is always greater than 0
PATCH 1/1 ar9170usb: unsigned is always greater than 0
outlen is unsigned so always greater than 0.
Signed-off-by Roel Kluin <[email protected]>
---
Maybe you want to test `outlen < MAX', but what should MAX be?
drivers/net/wireless/ar9170/usb.c +1 -1
@@ -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; }