All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wey-Yi Guy <wey-yi.w.guy@intel.com>
To: linville@tuxdriver.com
Cc: linux-wireless@vger.kernel.org, Wey-Yi Guy <wey-yi.w.guy@intel.com>
Subject: [PATCH wireless-3.1] iwlagn: fix warning in testmode attribute table
Date: Sat, 16 Jul 2011 07:56:21 -0700	[thread overview]
Message-ID: <1310828199-18000-2-git-send-email-wey-yi.w.guy@intel.com> (raw)
In-Reply-To: <1310828199-18000-1-git-send-email-wey-yi.w.guy@intel.com>

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>
---
this patch is also available from wireless-2.6 branch on
 git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-2.6.git
---
 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 c00aa5a..b17a330 100644
--- a/drivers/net/wireless/iwlwifi/iwl-sv-open.c
+++ b/drivers/net/wireless/iwlwifi/iwl-sv-open.c
@@ -607,7 +607,7 @@ static int iwl_testmode_trace_dump(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;
 
-- 
1.7.0.4


  reply	other threads:[~2011-07-16 15:32 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-16 14:56 [PATCH 00/18] update for 3.1 Wey-Yi Guy
2011-07-16 14:56 ` Wey-Yi Guy [this message]
2011-07-16 14:56 ` [PATCH 01/18] iwlagn: move Tx datapath to transport layer Wey-Yi Guy
2011-07-16 14:56 ` [PATCH 02/18] iwlagn: move the tasklet / irq to the " Wey-Yi Guy
2011-07-16 14:56 ` [PATCH 03/18] iwlagn: move sync_irq to " Wey-Yi Guy
2011-07-16 14:56 ` [PATCH 04/18] iwlagn: move the Rx dispatching to the upper layer Wey-Yi Guy
2011-07-16 14:56 ` [PATCH 05/18] iwlagn: remove un-necessary file Wey-Yi Guy
2011-07-16 14:56 ` [PATCH 06/18] iwlagn: remove dual-indirect call to simply the code Wey-Yi Guy
2011-07-16 14:56 ` [PATCH 07/18] iwlagn: another double indirect removed Wey-Yi Guy
2011-07-16 14:56 ` [PATCH 08/18] iwlagn: comments for iwl_cfg Wey-Yi Guy
2011-07-16 14:56 ` [PATCH 09/18] iwlagn: add comment to tx and get_tx_cmd in iwl_trans_ops Wey-Yi Guy
2011-07-16 14:56 ` [PATCH 10/18] iwlagn: simplify TX flags assignments Wey-Yi Guy
2011-07-16 14:56 ` [PATCH 11/18] iwlagn: set default of uCode ownership to driver Wey-Yi Guy
2011-07-16 14:56 ` [PATCH 12/18] iwlagn: calibration bitmap Wey-Yi Guy
2011-07-16 14:56 ` [PATCH 13/18] iwlagn: remove indirection for iwlagn_hw_valid_rtc_data_addr Wey-Yi Guy
2011-07-16 14:56 ` [PATCH 14/18] iwlagn: move rx transport functions to iwl-trans-rx-pcie.c Wey-Yi Guy
2011-07-16 14:56 ` [PATCH 15/18] iwlagn: move tx transport functions to iwl-trans-tx-pcie.c Wey-Yi Guy
2011-07-16 14:56 ` [PATCH 16/18] iwlagn: move iwlagn_stop_device to transport layer Wey-Yi Guy
2011-07-16 14:56 ` [PATCH 17/18] iwlagn: move all the ICT related functions to iwl-trans-rx-pcie.c Wey-Yi Guy
2011-07-16 14:56 ` [PATCH 18/18] iwlagn: add tx start API to transport layer Wey-Yi Guy
  -- strict thread matches above, loose matches on Subject: below --
2011-07-11 17:47 [PATCH wireless-3.1] iwlagn: fix warning in testmode attribute table Wey-Yi Guy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1310828199-18000-2-git-send-email-wey-yi.w.guy@intel.com \
    --to=wey-yi.w.guy@intel.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.