提交 9a62f73b 编写于 作者: J John W. Linville 提交者: David S. Miller

iwlwifi: remove redundant initialization of final_mode

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: NJohn W. Linville <linville@tuxdriver.com>
上级 d3c319f9
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册