]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
iwlwifi: zero trans_cfg before settings its fields
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Mon, 5 Nov 2012 10:52:57 +0000 (12:52 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 5 Nov 2012 15:13:00 +0000 (16:13 +0100)
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>
drivers/net/wireless/iwlwifi/dvm/main.c

index 95d348b028461a0ab21b1d856b5a87837edc0d53..bcaec84974d0ea3349a3fb1b9ef7dabd265ea284 100644 (file)
@@ -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,