From: Rami Rosen Date: Wed, 16 Jul 2008 13:39:56 +0000 (+0300) Subject: iwl-3945: add #ifdef CONFIG_IWL3945_LEDS to avoid compile warning. X-Git-Tag: v2.6.27-rc2~119^2~6^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=699669f331a9e459713e4327a468db8fbb8cd60f;p=pandora-kernel.git 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 Signed-off-by: John W. Linville --- Reading git-diff-tree failed