mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-06 08:47:44 -04:00
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>
This commit is contained in:
committed by
John W. Linville
parent
44e1b98f73
commit
ba5101d098
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user