iwlwifi: initialize iwl_wimax_coex_cmd.flags
authorStanislaw Gruszka <sgruszka@redhat.com>
Fri, 16 Apr 2010 13:47:56 +0000 (15:47 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 16 Apr 2010 19:47:17 +0000 (15:47 -0400)
iwl_wimax_coex_cmd.flags can be really uninitialized, so fix
that.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Acked-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-core.c

index f09bff823ab6fff804e1b7c2536e3b6c7134b4f0..2e489cd7b203e59e4fabda7277ab46d51c65ecba 100644 (file)
@@ -2382,11 +2382,11 @@ EXPORT_SYMBOL(iwl_free_txq_mem);
 
 int iwl_send_wimax_coex(struct iwl_priv *priv)
 {
-       struct iwl_wimax_coex_cmd uninitialized_var(coex_cmd);
+       struct iwl_wimax_coex_cmd coex_cmd;
 
        if (priv->cfg->support_wimax_coexist) {
                /* UnMask wake up src at associated sleep */
-               coex_cmd.flags |= COEX_FLAGS_ASSOC_WA_UNMASK_MSK;
+               coex_cmd.flags = COEX_FLAGS_ASSOC_WA_UNMASK_MSK;
 
                /* UnMask wake up src at unassociated sleep */
                coex_cmd.flags |= COEX_FLAGS_UNASSOC_WA_UNMASK_MSK;