diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-04-29 07:43:08 -0400 |
---|---|---|
committer | Reinette Chatre <reinette.chatre@intel.com> | 2010-05-10 18:08:59 -0400 |
commit | 3a065ab3b57bedefa1d59c88f731da6513ac482a (patch) | |
tree | edec5bdbbc93981936924ac507c0d51d28169b5c | |
parent | 832f47e333c7d0db632b57e9f07956ae40dd481d (diff) |
iwlwifi: remove useless priv->vif check
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>
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-power.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-power.c b/drivers/net/wireless/iwlwifi/iwl-power.c index 2655dbdc8175..1fe9d844313d 100644 --- a/drivers/net/wireless/iwlwifi/iwl-power.c +++ b/drivers/net/wireless/iwlwifi/iwl-power.c | |||
@@ -317,10 +317,7 @@ int iwl_power_update_mode(struct iwl_priv *priv, bool force) | |||
317 | update_chains = priv->chain_noise_data.state == IWL_CHAIN_NOISE_DONE || | 317 | update_chains = priv->chain_noise_data.state == IWL_CHAIN_NOISE_DONE || |
318 | priv->chain_noise_data.state == IWL_CHAIN_NOISE_ALIVE; | 318 | priv->chain_noise_data.state == IWL_CHAIN_NOISE_ALIVE; |
319 | 319 | ||
320 | if (priv->vif) | 320 | dtimper = priv->hw->conf.ps_dtim_period ?: 1; |
321 | dtimper = priv->hw->conf.ps_dtim_period; | ||
322 | else | ||
323 | dtimper = 1; | ||
324 | 321 | ||
325 | if (priv->cfg->broken_powersave) | 322 | if (priv->cfg->broken_powersave) |
326 | iwl_power_sleep_cam_cmd(priv, &cmd); | 323 | iwl_power_sleep_cam_cmd(priv, &cmd); |