iwlwifi: fix compilation warning when CONFIG_IWLWIFI_DEBUG is not set.
commit45527c2c4f698f8927239cfdec9f515cafed5f10
authorRami Rosen <ramirose@gmail.com>
Tue, 7 Oct 2008 07:50:01 +0000 (7 09:50 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 15 Oct 2008 00:46:26 +0000 (14 20:46 -0400)
tree35755d64492b5764b68a801d70f339648e1d1f55
parent746db510395e32ff57b9f8582e520df6b3fac618
iwlwifi: fix compilation warning when CONFIG_IWLWIFI_DEBUG is not set.

When CONFIG_IWLWIFI_DEBUG is not set and CONFIG_IWLWIFI is set,
we get this compilation warning:
/wireless-next-2.6/drivers/net/wireless/iwlwifi/iwl-agn-rs.c: In
function 'rs_free_sta':
/wireless-next-2.6/drivers/net/wireless/iwlwifi/iwl-agn-rs.c:2425:
warning: unused variable 'priv'

This patch fixes it by adding __maybe_unused attribute.

Signed-off-by: Rami Rosen <ramirose@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-agn-rs.c