Commit c1803c94 authored by Johannes Berg's avatar Johannes Berg Committed by John W. Linville

iwlwifi: remove two unused arguments in testmode

The dump functions never access the incoming
attributes, so don't pass them.
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarWey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 03dadf96
...@@ -713,7 +713,7 @@ static int iwl_testmode_trace(struct ieee80211_hw *hw, struct nlattr **tb) ...@@ -713,7 +713,7 @@ static int iwl_testmode_trace(struct ieee80211_hw *hw, struct nlattr **tb)
return -EMSGSIZE; return -EMSGSIZE;
} }
static int iwl_testmode_trace_dump(struct ieee80211_hw *hw, struct nlattr **tb, static int iwl_testmode_trace_dump(struct ieee80211_hw *hw,
struct sk_buff *skb, struct sk_buff *skb,
struct netlink_callback *cb) struct netlink_callback *cb)
{ {
...@@ -905,9 +905,9 @@ static int iwl_testmode_indirect_mem(struct ieee80211_hw *hw, ...@@ -905,9 +905,9 @@ static int iwl_testmode_indirect_mem(struct ieee80211_hw *hw,
} }
} }
static int iwl_testmode_buffer_dump(struct ieee80211_hw *hw, struct nlattr **tb, static int iwl_testmode_buffer_dump(struct ieee80211_hw *hw,
struct sk_buff *skb, struct sk_buff *skb,
struct netlink_callback *cb) struct netlink_callback *cb)
{ {
struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw); struct iwl_priv *priv = IWL_MAC80211_GET_DVM(hw);
int idx, length; int idx, length;
...@@ -1067,11 +1067,11 @@ int iwlagn_mac_testmode_dump(struct ieee80211_hw *hw, struct sk_buff *skb, ...@@ -1067,11 +1067,11 @@ int iwlagn_mac_testmode_dump(struct ieee80211_hw *hw, struct sk_buff *skb,
switch (cmd) { switch (cmd) {
case IWL_TM_CMD_APP2DEV_READ_TRACE: case IWL_TM_CMD_APP2DEV_READ_TRACE:
IWL_DEBUG_INFO(priv, "uCode trace cmd to driver\n"); IWL_DEBUG_INFO(priv, "uCode trace cmd to driver\n");
result = iwl_testmode_trace_dump(hw, tb, skb, cb); result = iwl_testmode_trace_dump(hw, skb, cb);
break; break;
case IWL_TM_CMD_APP2DEV_INDIRECT_BUFFER_DUMP: case IWL_TM_CMD_APP2DEV_INDIRECT_BUFFER_DUMP:
IWL_DEBUG_INFO(priv, "testmode sram dump cmd to driver\n"); IWL_DEBUG_INFO(priv, "testmode sram dump cmd to driver\n");
result = iwl_testmode_buffer_dump(hw, tb, skb, cb); result = iwl_testmode_buffer_dump(hw, skb, cb);
break; break;
default: default:
result = -EINVAL; result = -EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment