diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-06-22 11:42:21 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-07-10 15:01:57 -0400 |
commit | 35a0ace7739b50331c919a3255639f123b78eaff (patch) | |
tree | e1d168c275e5cd0f02a2538f4f22a9ffbd946ef0 /drivers/net/wireless/orinoco | |
parent | 1795378ee8d162084c6f98fc62ec309e418dfbe9 (diff) |
wireless: remove redundant tests on unsigned
bufsize and remainder are unsigned. When negative they are wrapped and caught by
the other test.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/orinoco')
-rw-r--r-- | drivers/net/wireless/orinoco/hermes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/orinoco/hermes.c b/drivers/net/wireless/orinoco/hermes.c index f2c918c2572d..1a2fca76fd3c 100644 --- a/drivers/net/wireless/orinoco/hermes.c +++ b/drivers/net/wireless/orinoco/hermes.c | |||
@@ -469,7 +469,7 @@ int hermes_read_ltv(hermes_t *hw, int bap, u16 rid, unsigned bufsize, | |||
469 | u16 rlength, rtype; | 469 | u16 rlength, rtype; |
470 | unsigned nwords; | 470 | unsigned nwords; |
471 | 471 | ||
472 | if ((bufsize < 0) || (bufsize % 2)) | 472 | if (bufsize % 2) |
473 | return -EINVAL; | 473 | return -EINVAL; |
474 | 474 | ||
475 | err = hermes_docmd_wait(hw, HERMES_CMD_ACCESS, rid, NULL); | 475 | err = hermes_docmd_wait(hw, HERMES_CMD_ACCESS, rid, NULL); |