diff options
author | Roel Kluin | 2009-04-26 14:40:59 +0200 |
---|---|---|
committer | John W. Linville | 2009-05-06 21:14:45 +0200 |
commit | ba5101d098d6a8471d1a3147fb610b2ee3dbb397 (patch) | |
tree | 45293d814c1ca8c1647b449338ac47a8816ea102 /drivers | |
parent | cfg80211: Use the correct IE buffer pointer (diff) | |
download | kernel-qcow2-linux-ba5101d098d6a8471d1a3147fb610b2ee3dbb397.tar.gz kernel-qcow2-linux-ba5101d098d6a8471d1a3147fb610b2ee3dbb397.tar.xz kernel-qcow2-linux-ba5101d098d6a8471d1a3147fb610b2ee3dbb397.zip |
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>
Diffstat (limited to 'drivers')
-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, goto err_unbuf; } - if (outlen >= 0 && aru->readlen != outlen) { + if (aru->readlen != outlen) { err = -EMSGSIZE; goto err_unbuf; } |