diff options
author | Rami Rosen <ramirose@gmail.com> | 2008-07-16 16:39:56 +0300 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-07-29 16:55:03 -0400 |
commit | 699669f331a9e459713e4327a468db8fbb8cd60f (patch) | |
tree | 2db2854d3b46df8d5a10f5af4d02b0201d91a8bc /samples | |
parent | 435307a365ceedc4f4e1813e405f583f434d98e4 (diff) |
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>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions