diff options
author | roel kluin <roel.kluin@gmail.com> | 2008-07-21 20:29:52 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-08-22 16:29:51 -0400 |
commit | 73ae98a1334c7ab7c4f01e8a1c0c773470979688 (patch) | |
tree | f641d556c22ef6f5712f9882b0e65a3835bc8d67 /drivers | |
parent | 6f0a2c4dfc96d268233a6a882f3805975f91216c (diff) |
iwl-4965: test below 0 on unsigned num_tbs
num_tbs is unsigned so the test doesn't work.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-tx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-tx.c b/drivers/net/wireless/iwlwifi/iwl-tx.c index d82823b5c8ab..dac34aa8358e 100644 --- a/drivers/net/wireless/iwlwifi/iwl-tx.c +++ b/drivers/net/wireless/iwlwifi/iwl-tx.c | |||
@@ -126,7 +126,7 @@ int iwl_hw_txq_attach_buf_to_tfd(struct iwl_priv *priv, void *ptr, | |||
126 | u32 num_tbs = IWL_GET_BITS(*tfd, num_tbs); | 126 | u32 num_tbs = IWL_GET_BITS(*tfd, num_tbs); |
127 | 127 | ||
128 | /* Each TFD can point to a maximum 20 Tx buffers */ | 128 | /* Each TFD can point to a maximum 20 Tx buffers */ |
129 | if ((num_tbs >= MAX_NUM_OF_TBS) || (num_tbs < 0)) { | 129 | if (num_tbs >= MAX_NUM_OF_TBS) { |
130 | IWL_ERROR("Error can not send more than %d chunks\n", | 130 | IWL_ERROR("Error can not send more than %d chunks\n", |
131 | MAX_NUM_OF_TBS); | 131 | MAX_NUM_OF_TBS); |
132 | return -EINVAL; | 132 | return -EINVAL; |