summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorFabio Estevam <festevam@gmail.com>2012-01-16 03:47:12 +0100
committerJohn W. Linville <linville@tuxdriver.com>2012-01-16 21:01:16 +0100
commit331d9301ed4d0fe33e9762c62f2870243bcf77eb (patch)
tree3b33f0b9c4703ff52273f03d4e1127e31942d4b4 /drivers
parentNet, mac80211: Fix resource leak in ieee80211_rx_h_mesh_fwding() (diff)
downloadlinux-331d9301ed4d0fe33e9762c62f2870243bcf77eb.tar.xz
linux-331d9301ed4d0fe33e9762c62f2870243bcf77eb.zip
wireless: iwlwifi: iwl-scan.c: Fix build warning
Fix the following build warning: drivers/net/wireless/iwlwifi/iwl-scan.c: In function ‘iwlagn_request_scan’: drivers/net/wireless/iwlwifi/iwl-scan.c:572: warning: ‘cmd_len’ may be used uninitialized in this function Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Acked-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-scan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-scan.c b/drivers/net/wireless/iwlwifi/iwl-scan.c
index 084aa2c4ccfb..a6454726737e 100644
--- a/drivers/net/wireless/iwlwifi/iwl-scan.c
+++ b/drivers/net/wireless/iwlwifi/iwl-scan.c
@@ -569,7 +569,7 @@ static int iwlagn_request_scan(struct iwl_priv *priv, struct ieee80211_vif *vif)
struct iwl_scan_cmd *scan;
struct iwl_rxon_context *ctx = &priv->contexts[IWL_RXON_CTX_BSS];
u32 rate_flags = 0;
- u16 cmd_len;
+ u16 cmd_len = 0;
u16 rx_chain = 0;
enum ieee80211_band band;
u8 n_probes = 0;