diff options
author | Winkler, Tomas <tomas.winkler@intel.com> | 2009-01-27 17:27:53 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-02-09 15:03:33 -0500 |
commit | 7530f85f086a5d58a5e43b1a98993801fe509c51 (patch) | |
tree | 25681cf041683dc30f36e6276e2eaf381159adc4 /drivers/net/wireless/iwlwifi/iwl3945-base.c | |
parent | 8ccde88a87a3dc906234b281a036fee9c7371949 (diff) |
iwlwifi: suppress unused variable warning when compiling w/o IWLWIFI_DEBUG
This patch adds __maybe_unused attribute to priv variables used in
functions that used it solely for debug printouts
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Cc: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl3945-base.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl3945-base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index 6a2c8a3a3d5e..72ff20e10aa6 100644 --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c | |||
@@ -5270,8 +5270,8 @@ static ssize_t store_antenna(struct device *d, | |||
5270 | struct device_attribute *attr, | 5270 | struct device_attribute *attr, |
5271 | const char *buf, size_t count) | 5271 | const char *buf, size_t count) |
5272 | { | 5272 | { |
5273 | struct iwl_priv *priv __maybe_unused = dev_get_drvdata(d); | ||
5273 | int ant; | 5274 | int ant; |
5274 | struct iwl_priv *priv = dev_get_drvdata(d); | ||
5275 | 5275 | ||
5276 | if (count == 0) | 5276 | if (count == 0) |
5277 | return 0; | 5277 | return 0; |