提交 ea886a60 编写于 作者: J Johannes Berg 提交者: John W. Linville

iwlwifi: remove unused argument from iwlagn_suspend

There's not much point in passing priv and
hw pointers since they can be derived from
each other, and the function doesn't use
the hw pointer anyway. Remove it.
Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
Signed-off-by: NWey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 c1803c94
...@@ -1120,8 +1120,7 @@ int iwlagn_send_patterns(struct iwl_priv *priv, ...@@ -1120,8 +1120,7 @@ int iwlagn_send_patterns(struct iwl_priv *priv,
return err; return err;
} }
int iwlagn_suspend(struct iwl_priv *priv, int iwlagn_suspend(struct iwl_priv *priv, struct cfg80211_wowlan *wowlan)
struct ieee80211_hw *hw, struct cfg80211_wowlan *wowlan)
{ {
struct iwlagn_wowlan_wakeup_filter_cmd wakeup_filter_cmd; struct iwlagn_wowlan_wakeup_filter_cmd wakeup_filter_cmd;
struct iwl_rxon_cmd rxon; struct iwl_rxon_cmd rxon;
......
...@@ -141,8 +141,7 @@ int iwlagn_send_beacon_cmd(struct iwl_priv *priv); ...@@ -141,8 +141,7 @@ int iwlagn_send_beacon_cmd(struct iwl_priv *priv);
#ifdef CONFIG_PM_SLEEP #ifdef CONFIG_PM_SLEEP
int iwlagn_send_patterns(struct iwl_priv *priv, int iwlagn_send_patterns(struct iwl_priv *priv,
struct cfg80211_wowlan *wowlan); struct cfg80211_wowlan *wowlan);
int iwlagn_suspend(struct iwl_priv *priv, int iwlagn_suspend(struct iwl_priv *priv, struct cfg80211_wowlan *wowlan);
struct ieee80211_hw *hw, struct cfg80211_wowlan *wowlan);
#endif #endif
/* rx */ /* rx */
......
...@@ -405,7 +405,7 @@ static int iwlagn_mac_suspend(struct ieee80211_hw *hw, ...@@ -405,7 +405,7 @@ static int iwlagn_mac_suspend(struct ieee80211_hw *hw,
goto out; goto out;
} }
ret = iwlagn_suspend(priv, hw, wowlan); ret = iwlagn_suspend(priv, wowlan);
if (ret) if (ret)
goto error; goto error;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册