aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHelmut Schaa <helmut.schaa@googlemail.com>2009-01-19 07:02:15 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-01-29 16:00:50 -0500
commitc7e035a95d68819491b5250c6854f144c941e305 (patch)
treecee7ce1ebf36181465d82b459cf8d26dedcd6151
parent2182b830fe0258477d469429d2dfb5702b84587e (diff)
iwl3945: fix some warnings when compiled without debug
Fix the following warnings if compiled without CONFIG_IWLWIFI_DEBUG. drivers/net/wireless/iwlwifi/iwl3945-base.c: In function ‘iwl3945_rx_reply_add_sta’: drivers/net/wireless/iwlwifi/iwl3945-base.c:2748: warning: unused variable ‘pkt’ drivers/net/wireless/iwlwifi/iwl3945-base.c: In function ‘iwl3945_rx_scan_results_notif’: drivers/net/wireless/iwlwifi/iwl3945-base.c:2903: warning: unused variable ‘notif’ drivers/net/wireless/iwlwifi/iwl3945-base.c: In function ‘iwl3945_rx_scan_complete_notif’: drivers/net/wireless/iwlwifi/iwl3945-base.c:2928: warning: unused variable ‘scan_notif’ Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com> Acked-by: Samuel Ortiz <samuel.ortiz@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/iwlwifi/iwl3945-base.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c
index 050d532475ca..b916f00b61bf 100644
--- a/drivers/net/wireless/iwlwifi/iwl3945-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c
@@ -2744,7 +2744,9 @@ static void iwl3945_rx_reply_alive(struct iwl_priv *priv,
2744static void iwl3945_rx_reply_add_sta(struct iwl_priv *priv, 2744static void iwl3945_rx_reply_add_sta(struct iwl_priv *priv,
2745 struct iwl_rx_mem_buffer *rxb) 2745 struct iwl_rx_mem_buffer *rxb)
2746{ 2746{
2747#ifdef CONFIG_IWLWIFI_DEBUG
2747 struct iwl_rx_packet *pkt = (void *)rxb->skb->data; 2748 struct iwl_rx_packet *pkt = (void *)rxb->skb->data;
2749#endif
2748 2750
2749 IWL_DEBUG_RX("Received REPLY_ADD_STA: 0x%02X\n", pkt->u.status); 2751 IWL_DEBUG_RX("Received REPLY_ADD_STA: 0x%02X\n", pkt->u.status);
2750 return; 2752 return;
@@ -2898,9 +2900,11 @@ static void iwl3945_rx_scan_start_notif(struct iwl_priv *priv,
2898static void iwl3945_rx_scan_results_notif(struct iwl_priv *priv, 2900static void iwl3945_rx_scan_results_notif(struct iwl_priv *priv,
2899 struct iwl_rx_mem_buffer *rxb) 2901 struct iwl_rx_mem_buffer *rxb)
2900{ 2902{
2903#ifdef CONFIG_IWLWIFI_DEBUG
2901 struct iwl_rx_packet *pkt = (void *)rxb->skb->data; 2904 struct iwl_rx_packet *pkt = (void *)rxb->skb->data;
2902 struct iwl_scanresults_notification *notif = 2905 struct iwl_scanresults_notification *notif =
2903 (struct iwl_scanresults_notification *)pkt->u.raw; 2906 (struct iwl_scanresults_notification *)pkt->u.raw;
2907#endif
2904 2908
2905 IWL_DEBUG_SCAN("Scan ch.res: " 2909 IWL_DEBUG_SCAN("Scan ch.res: "
2906 "%d [802.11%s] " 2910 "%d [802.11%s] "
@@ -2923,8 +2927,10 @@ static void iwl3945_rx_scan_results_notif(struct iwl_priv *priv,
2923static void iwl3945_rx_scan_complete_notif(struct iwl_priv *priv, 2927static void iwl3945_rx_scan_complete_notif(struct iwl_priv *priv,
2924 struct iwl_rx_mem_buffer *rxb) 2928 struct iwl_rx_mem_buffer *rxb)
2925{ 2929{
2930#ifdef CONFIG_IWLWIFI_DEBUG
2926 struct iwl_rx_packet *pkt = (void *)rxb->skb->data; 2931 struct iwl_rx_packet *pkt = (void *)rxb->skb->data;
2927 struct iwl_scancomplete_notification *scan_notif = (void *)pkt->u.raw; 2932 struct iwl_scancomplete_notification *scan_notif = (void *)pkt->u.raw;
2933#endif
2928 2934
2929 IWL_DEBUG_SCAN("Scan complete: %d channels (TSF 0x%08X:%08X) - %d\n", 2935 IWL_DEBUG_SCAN("Scan complete: %d channels (TSF 0x%08X:%08X) - %d\n",
2930 scan_notif->scanned_channels, 2936 scan_notif->scanned_channels,