summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>2012-11-05 12:52:57 +0200
committerJohannes Berg <johannes.berg@intel.com>2012-11-05 16:13:00 +0100
commite7332691de2f97e47099088ca5d20f1ca6be8e0b (patch)
tree38977f9b913d0cb2a6d3e2982f89ad0b55a08799 /drivers/net
parentadca1235cccacee91beb640a044e51b1c457b1ea (diff)
downloadtalos-obmc-linux-e7332691de2f97e47099088ca5d20f1ca6be8e0b.tar.gz
talos-obmc-linux-e7332691de2f97e47099088ca5d20f1ca6be8e0b.zip
iwlwifi: zero trans_cfg before settings its fields
People tend not to set the fields they want to leave as 0. So make sure the struct is zeroed properly. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/iwlwifi/dvm/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/dvm/main.c b/drivers/net/wireless/iwlwifi/dvm/main.c
index 95d348b02846..bcaec84974d0 100644
--- a/drivers/net/wireless/iwlwifi/dvm/main.c
+++ b/drivers/net/wireless/iwlwifi/dvm/main.c
@@ -1231,7 +1231,7 @@ static struct iwl_op_mode *iwl_op_mode_dvm_start(struct iwl_trans *trans,
struct iwl_op_mode *op_mode;
u16 num_mac;
u32 ucode_flags;
- struct iwl_trans_config trans_cfg;
+ struct iwl_trans_config trans_cfg = {};
static const u8 no_reclaim_cmds[] = {
REPLY_RX_PHY_CMD,
REPLY_RX_MPDU_CMD,
OpenPOWER on IntegriCloud