From: Wey-Yi Guy Date: Mon, 11 Jul 2011 17:47:39 +0000 (-0700) Subject: iwlagn: fix warning in testmode attribute table X-Git-Tag: v3.1-rc1~24^2~10^2^2~143 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a67792789868d95d14e46a7b6e0c1f214a6fcfb1;p=platform%2Fkernel%2Flinux-exynos.git iwlagn: fix warning in testmode attribute table Fix the compile warning cause by [IWL_TM_ATTR_MAX - 1] Reported-by: Johannes Berg Signed-off-by: Wey-Yi Guy Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/iwlwifi/iwl-sv-open.c b/drivers/net/wireless/iwlwifi/iwl-sv-open.c index a322f5e..77ed1c2 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) */ int iwl_testmode_cmd(struct ieee80211_hw *hw, void *data, int len) { - struct nlattr *tb[IWL_TM_ATTR_MAX - 1]; + struct nlattr *tb[IWL_TM_ATTR_MAX]; struct iwl_priv *priv = hw->priv; int result;