summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-tx.c
diff options
context:
space:
mode:
authorroel kluin <roel.kluin@gmail.com>2008-07-21 20:29:52 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-08-22 16:29:51 -0400
commit73ae98a1334c7ab7c4f01e8a1c0c773470979688 (patch)
treef641d556c22ef6f5712f9882b0e65a3835bc8d67 /drivers/net/wireless/iwlwifi/iwl-tx.c
parent6f0a2c4dfc96d268233a6a882f3805975f91216c (diff)
downloadkernel-crypto-73ae98a1334c7ab7c4f01e8a1c0c773470979688.tar.gz
kernel-crypto-73ae98a1334c7ab7c4f01e8a1c0c773470979688.tar.xz
kernel-crypto-73ae98a1334c7ab7c4f01e8a1c0c773470979688.zip
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/net/wireless/iwlwifi/iwl-tx.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-tx.c2
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 d82823b5c8a..dac34aa8358 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,
u32 num_tbs = IWL_GET_BITS(*tfd, num_tbs);
/* Each TFD can point to a maximum 20 Tx buffers */
- if ((num_tbs >= MAX_NUM_OF_TBS) || (num_tbs < 0)) {
+ if (num_tbs >= MAX_NUM_OF_TBS) {
IWL_ERROR("Error can not send more than %d chunks\n",
MAX_NUM_OF_TBS);
return -EINVAL;