diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2011-07-11 13:47:39 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-07-11 15:02:46 -0400 |
commit | a67792789868d95d14e46a7b6e0c1f214a6fcfb1 (patch) | |
tree | 5a81b74f919f89a8e06c1c29bdb4796210a863d9 | |
parent | 9dff387046ef20547236b75dd0d095904e4c0779 (diff) |
iwlagn: fix warning in testmode attribute table
Fix the compile warning cause by [IWL_TM_ATTR_MAX - 1]
Reported-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-sv-open.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-sv-open.c b/drivers/net/wireless/iwlwifi/iwl-sv-open.c index a322f5e80759..77ed1c295da4 100644 --- a/drivers/net/wireless/iwlwifi/iwl-sv-open.c +++ b/drivers/net/wireless/iwlwifi/iwl-sv-open.c | |||
@@ -645,7 +645,7 @@ static int iwl_testmode_ownership(struct ieee80211_hw *hw, struct nlattr **tb) | |||
645 | */ | 645 | */ |
646 | int iwl_testmode_cmd(struct ieee80211_hw *hw, void *data, int len) | 646 | int iwl_testmode_cmd(struct ieee80211_hw *hw, void *data, int len) |
647 | { | 647 | { |
648 | struct nlattr *tb[IWL_TM_ATTR_MAX - 1]; | 648 | struct nlattr *tb[IWL_TM_ATTR_MAX]; |
649 | struct iwl_priv *priv = hw->priv; | 649 | struct iwl_priv *priv = hw->priv; |
650 | int result; | 650 | int result; |
651 | 651 | ||