All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Straube <straube.linux@gmail.com>
To: gregkh@linuxfoundation.org
Cc: Larry.Finger@lwfinger.net, phil@philpotter.co.uk,
	linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org,
	Michael Straube <straube.linux@gmail.com>
Subject: [PATCH 10/17] staging: r8188eu: remove rtw_setassocsta_cmd()
Date: Thu, 23 Sep 2021 21:09:13 +0200	[thread overview]
Message-ID: <20210923190920.3580-11-straube.linux@gmail.com> (raw)
In-Reply-To: <20210923190920.3580-1-straube.linux@gmail.com>

Function rtw_setassocsta_cmd() is not used, remove it.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
---
 drivers/staging/r8188eu/core/rtw_cmd.c    | 42 -----------------------
 drivers/staging/r8188eu/include/rtw_cmd.h |  1 -
 2 files changed, 43 deletions(-)

diff --git a/drivers/staging/r8188eu/core/rtw_cmd.c b/drivers/staging/r8188eu/core/rtw_cmd.c
index c7ac4a100367..c2be84b474f9 100644
--- a/drivers/staging/r8188eu/core/rtw_cmd.c
+++ b/drivers/staging/r8188eu/core/rtw_cmd.c
@@ -975,48 +975,6 @@ u8 rtw_setrttbl_cmd(struct adapter  *padapter, struct setratable_parm *prate_tab
 	return res;
 }
 
-u8 rtw_setassocsta_cmd(struct adapter  *padapter, u8 *mac_addr)
-{
-	struct cmd_priv *pcmdpriv = &padapter->cmdpriv;
-	struct cmd_obj *ph2c;
-	struct set_assocsta_parm *psetassocsta_para;
-	struct set_stakey_rsp *psetassocsta_rsp = NULL;
-
-	u8	res = _SUCCESS;
-
-	ph2c = kzalloc(sizeof(struct cmd_obj), GFP_ATOMIC);
-	if (!ph2c) {
-		res = _FAIL;
-		goto exit;
-	}
-
-	psetassocsta_para = kzalloc(sizeof(struct set_assocsta_parm), GFP_ATOMIC);
-	if (!psetassocsta_para) {
-		kfree(ph2c);
-		res = _FAIL;
-		goto exit;
-	}
-
-	psetassocsta_rsp = kzalloc(sizeof(struct set_assocsta_rsp), GFP_ATOMIC);
-	if (!psetassocsta_rsp) {
-		kfree(ph2c);
-		kfree(psetassocsta_para);
-		return _FAIL;
-	}
-
-	init_h2fwcmd_w_parm_no_rsp(ph2c, psetassocsta_para, _SetAssocSta_CMD_);
-	ph2c->rsp = (u8 *)psetassocsta_rsp;
-	ph2c->rspsz = sizeof(struct set_assocsta_rsp);
-
-	memcpy(psetassocsta_para->addr, mac_addr, ETH_ALEN);
-
-	res = rtw_enqueue_cmd(pcmdpriv, ph2c);
-
-exit:
-
-	return res;
- }
-
 u8 rtw_addbareq_cmd(struct adapter *padapter, u8 tid, u8 *addr)
 {
 	struct cmd_priv *pcmdpriv = &padapter->cmdpriv;
diff --git a/drivers/staging/r8188eu/include/rtw_cmd.h b/drivers/staging/r8188eu/include/rtw_cmd.h
index 0881c9b99dac..6a8dbfdf0bc4 100644
--- a/drivers/staging/r8188eu/include/rtw_cmd.h
+++ b/drivers/staging/r8188eu/include/rtw_cmd.h
@@ -744,7 +744,6 @@ struct TDLSoption_param
 #define H2C_CMD_OVERFLOW	0x06
 #define H2C_RESERVED		0x07
 
-u8 rtw_setassocsta_cmd(struct adapter  *padapter, u8 *mac_addr);
 u8 rtw_setstandby_cmd(struct adapter *padapter, uint action);
 u8 rtw_sitesurvey_cmd(struct adapter  *padapter, struct ndis_802_11_ssid *ssid,
 		      int ssid_num, struct rtw_ieee80211_channel *ch,
-- 
2.33.0


  parent reply	other threads:[~2021-09-23 19:09 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-23 19:09 [PATCH 00/17] staging: r8188eu: remove unused functions from rtw_cmd.c Michael Straube
2021-09-23 19:09 ` [PATCH 01/17] staging: r8188eu: remove rtw_cmd_clr_isr() Michael Straube
2021-09-23 19:09 ` [PATCH 02/17] staging: r8188eu: remove rtw_createbss_cmd_ex() Michael Straube
2021-09-23 19:09 ` [PATCH 03/17] staging: r8188eu: remove rtw_getbbreg_cmd() Michael Straube
2021-09-23 19:09 ` [PATCH 04/17] staging: r8188eu: remove rtw_getrfreg_cmd() Michael Straube
2021-09-23 19:09 ` [PATCH 05/17] staging: r8188eu: remove rtw_getrttbl_cmd() Michael Straube
2021-09-23 19:09 ` [PATCH 06/17] staging: r8188eu: remove rtw_led_blink_cmd() Michael Straube
2021-09-23 19:09 ` [PATCH 07/17] staging: r8188eu: remove rtw_readtssi_cmdrsp_callback() Michael Straube
2021-09-23 19:09 ` [PATCH 08/17] staging: r8188eu: remove rtw_set_ch_cmd() Michael Straube
2021-09-23 19:09 ` [PATCH 09/17] staging: r8188eu: remove rtw_set_csa_cmd() Michael Straube
2021-09-23 19:09 ` Michael Straube [this message]
2021-09-23 19:09 ` [PATCH 11/17] staging: r8188eu: remove rtw_setbasicrate_cmd() Michael Straube
2021-09-23 19:09 ` [PATCH 12/17] staging: r8188eu: remove rtw_setbbreg_cmd() Michael Straube
2021-09-23 19:09 ` [PATCH 13/17] staging: r8188eu: remove rtw_setphy_cmd() Michael Straube
2021-09-23 19:09 ` [PATCH 14/17] staging: r8188eu: remove rtw_setrfreg_cmd() Michael Straube
2021-09-23 19:09 ` [PATCH 15/17] staging: r8188eu: remove rtw_setrttbl_cmd() Michael Straube
2021-09-23 19:09 ` [PATCH 16/17] staging: r8188eu: remove rtw_setstandby_cmd() Michael Straube
2021-09-23 19:09 ` [PATCH 17/17] staging: r8188eu: remove rtw_tdls_cmd() Michael Straube

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=20210923190920.3580-11-straube.linux@gmail.com \
    --to=straube.linux@gmail.com \
    --cc=Larry.Finger@lwfinger.net \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=phil@philpotter.co.uk \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.