diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-04-26 08:40:59 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-05-06 15:14:45 -0400 |
commit | ba5101d098d6a8471d1a3147fb610b2ee3dbb397 (patch) | |
tree | 45293d814c1ca8c1647b449338ac47a8816ea102 | |
parent | 44e1b98f733e48bb781e4229120e1de5e0c9fdbb (diff) |
ar9170: wrong test on outlen in ar9170_usb_exec_cmd() ?
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>
-rw-r--r-- | drivers/net/wireless/ath/ar9170/usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ar9170/usb.c b/drivers/net/wireless/ath/ar9170/usb.c index 368fc2d42641..d7b562dcebd2 100644 --- a/drivers/net/wireless/ath/ar9170/usb.c +++ b/drivers/net/wireless/ath/ar9170/usb.c | |||
@@ -350,7 +350,7 @@ static int ar9170_usb_exec_cmd(struct ar9170 *ar, enum ar9170_cmd cmd, | |||
350 | goto err_unbuf; | 350 | goto err_unbuf; |
351 | } | 351 | } |
352 | 352 | ||
353 | if (outlen >= 0 && aru->readlen != outlen) { | 353 | if (aru->readlen != outlen) { |
354 | err = -EMSGSIZE; | 354 | err = -EMSGSIZE; |
355 | goto err_unbuf; | 355 | goto err_unbuf; |
356 | } | 356 | } |