Skip to content

Commit

Permalink
iwlwifi: remove useless priv->vif check
Browse files Browse the repository at this point in the history
This check is not useful, since we now no
longer dereference priv->vif at this spot.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
  • Loading branch information
Johannes Berg authored and Reinette Chatre committed May 10, 2010
1 parent 832f47e commit 3a065ab
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/net/wireless/iwlwifi/iwl-power.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,10 +317,7 @@ int iwl_power_update_mode(struct iwl_priv *priv, bool force)
update_chains = priv->chain_noise_data.state == IWL_CHAIN_NOISE_DONE ||
priv->chain_noise_data.state == IWL_CHAIN_NOISE_ALIVE;

if (priv->vif)
dtimper = priv->hw->conf.ps_dtim_period;
else
dtimper = 1;
dtimper = priv->hw->conf.ps_dtim_period ?: 1;

if (priv->cfg->broken_powersave)
iwl_power_sleep_cam_cmd(priv, &cmd);
Expand Down

0 comments on commit 3a065ab

Please sign in to comment.