iwl-3945: add #ifdef CONFIG_IWL3945_LEDS to avoid compile warning.
authorRami Rosen <ramirose@gmail.com>
Wed, 16 Jul 2008 13:39:56 +0000 (16:39 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 29 Jul 2008 20:55:03 +0000 (16:55 -0400)
commit699669f331a9e459713e4327a468db8fbb8cd60f
tree2db2854d3b46df8d5a10f5af4d02b0201d91a8bc
parent435307a365ceedc4f4e1813e405f583f434d98e4
iwl-3945: add #ifdef CONFIG_IWL3945_LEDS to avoid compile warning.

When building the wireless-next-2.6 tree with CONFIG_IWL3945 (for building
iwl-3945 driver) and where CONFIG_IWL3945_LEDS is not set,
we get this warning:
drivers/net/wireless/iwlwifi/iwl-3945.c: In function
'iwl3945_pass_packet_to_mac80211':
drivers/net/wireless/iwlwifi/iwl-3945.c:633: warning: unused variable 'hdr'

This patch adds #ifdef to iwl3945_pass_packet_to_mac80211() to avoid this
warning. (The variable 'hdr' is used only if CONFIG_IWL3945_LEDS is set)

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