netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Saurav Girepunje <saurav.girepunje@gmail.com>
To: johannes@sipsolutions.net, davem@davemloft.net, kuba@kernel.org,
	linux-wireless@vger.kernel.org, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org
Cc: saurav.girepunje@hotmail.com
Subject: [PATCH] net: mac80211: remove unused local variable
Date: Thu, 6 May 2021 09:47:03 +0530	[thread overview]
Message-ID: <20210506041703.GA5681@user> (raw)

In ieee80211_process_addba_request() first argument is never
used.

Signed-off-by: Saurav Girepunje <saurav.girepunje@gmail.com>
---
 net/mac80211/agg-rx.c      | 3 +--
 net/mac80211/ieee80211_i.h | 3 +--
 net/mac80211/iface.c       | 4 ++--
 3 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/net/mac80211/agg-rx.c b/net/mac80211/agg-rx.c
index cce28e3b2232..3075570e7968 100644
--- a/net/mac80211/agg-rx.c
+++ b/net/mac80211/agg-rx.c
@@ -471,8 +471,7 @@ static void __ieee80211_start_rx_ba_session(struct sta_info *sta,
 	mutex_unlock(&sta->ampdu_mlme.mtx);
 }

-void ieee80211_process_addba_request(struct ieee80211_local *local,
-				     struct sta_info *sta,
+void ieee80211_process_addba_request(struct sta_info *sta,
 				     struct ieee80211_mgmt *mgmt,
 				     size_t len)
 {
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h
index 8fcbaa1eedf3..9e3e5aaddaf6 100644
--- a/net/mac80211/ieee80211_i.h
+++ b/net/mac80211/ieee80211_i.h
@@ -1859,8 +1859,7 @@ void ieee80211_process_addba_resp(struct ieee80211_local *local,
 				  struct sta_info *sta,
 				  struct ieee80211_mgmt *mgmt,
 				  size_t len);
-void ieee80211_process_addba_request(struct ieee80211_local *local,
-				     struct sta_info *sta,
+void ieee80211_process_addba_request(struct sta_info *sta,
 				     struct ieee80211_mgmt *mgmt,
 				     size_t len);

diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c
index 7032a2b59249..4fe599bf9f9c 100644
--- a/net/mac80211/iface.c
+++ b/net/mac80211/iface.c
@@ -1351,8 +1351,8 @@ static void ieee80211_iface_work(struct work_struct *work)
 			if (sta) {
 				switch (mgmt->u.action.u.addba_req.action_code) {
 				case WLAN_ACTION_ADDBA_REQ:
-					ieee80211_process_addba_request(
-							local, sta, mgmt, len);
+					ieee80211_process_addba_request(sta,
+									mgmt, len);
 					break;
 				case WLAN_ACTION_ADDBA_RESP:
 					ieee80211_process_addba_resp(local, sta,
--
2.25.1


                 reply	other threads:[~2021-05-06  4:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210506041703.GA5681@user \
    --to=saurav.girepunje@gmail.com \
    --cc=davem@davemloft.net \
    --cc=johannes@sipsolutions.net \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=saurav.girepunje@hotmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).