Skip to content

Commit

Permalink
iwlwifi: remove redundant initialization of final_mode
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
John W. Linville authored and David S. Miller committed Jan 28, 2008
1 parent d3c319f commit 9a62f73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/net/wireless/iwlwifi/iwl3945-base.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
u32 final_mode = mode;
u32 uninitialized_var(final_mode);
int rc;
struct iwl3945_powertable_cmd cmd;

Expand Down
2 changes: 1 addition & 1 deletion drivers/net/wireless/iwlwifi/iwl4965-base.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
u32 final_mode = mode;
u32 uninitialized_var(final_mode);
int rc;
struct iwl4965_powertable_cmd cmd;

Expand Down

0 comments on commit 9a62f73

Please sign in to comment.