iwlwifi: remove redundant initialization of final_mode
authorJohn W. Linville <linville@tuxdriver.com>
Thu, 15 Nov 2007 21:27:36 +0000 (16:27 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:04:45 +0000 (15:04 -0800)
Problem identified by Miguel Botón <mboton.lkml@gmail.com>, alternate
solution suggested by Zhu Yi <yi.zhu@intel.com>, patch by me. :-)

Cc: Miguel Botón <mboton.lkml@gmail.com>
Cc: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl3945-base.c
drivers/net/wireless/iwlwifi/iwl4965-base.c

index e14e1333535fbc557c169f6de3a6e41c738bf076..76186f85c13164327ae9fc3eec48f5fea0bf4155 100644 (file)
@@ -2139,7 +2139,7 @@ static int iwl3945_update_power_cmd(struct iwl3945_priv *priv,
 
 static int iwl3945_send_power_mode(struct iwl3945_priv *priv, u32 mode)
 {
 
 static int iwl3945_send_power_mode(struct iwl3945_priv *priv, u32 mode)
 {
-       u32 final_mode = mode;
+       u32 uninitialized_var(final_mode);
        int rc;
        struct iwl3945_powertable_cmd cmd;
 
        int rc;
        struct iwl3945_powertable_cmd cmd;
 
index 24dc40f2f4c8c870eea0692769adf3459768e363..02433930f7e21063231f9d4097c9cd152392c5d5 100644 (file)
@@ -2218,7 +2218,7 @@ static int iwl4965_update_power_cmd(struct iwl4965_priv *priv,
 
 static int iwl4965_send_power_mode(struct iwl4965_priv *priv, u32 mode)
 {
 
 static int iwl4965_send_power_mode(struct iwl4965_priv *priv, u32 mode)
 {
-       u32 final_mode = mode;
+       u32 uninitialized_var(final_mode);
        int rc;
        struct iwl4965_powertable_cmd cmd;
 
        int rc;
        struct iwl4965_powertable_cmd cmd;