public inbox for linux-staging@lists.linux.dev
 help / color / mirror / Atom feed
From: lukagejak5@gmail.com
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Dan Carpenter <dan.carpenter@linaro.org>,
	linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org,
	Luka Gejak <luka.gejak@linux.dev>
Subject: [PATCH v2 05/26] staging: rtl8723bs: remove dead debugging code in rtw_mlme_ext.c
Date: Fri,  6 Feb 2026 08:54:18 +0100	[thread overview]
Message-ID: <20260206075439.103287-6-luka.gejak@linux.dev> (raw)
In-Reply-To: <20260206075439.103287-1-luka.gejak@linux.dev>

From: Luka Gejak <luka.gejak@linux.dev>

Remove the unused local variable 'pattrib' and the unreachable 'if (0)'
debug block in OnAction_sa_query to clean up the driver code.

Signed-off-by: Luka Gejak <luka.gejak@linux.dev>
---
 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
index 884fcce50d9c..f2b0233627c8 100644
--- a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
+++ b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
@@ -1848,7 +1848,6 @@ unsigned int OnAction_ht(struct adapter *padapter, union recv_frame *precv_frame
 unsigned int OnAction_sa_query(struct adapter *padapter, union recv_frame *precv_frame)
 {
 	u8 *pframe = precv_frame->u.hdr.rx_data;
-	struct rx_pkt_attrib *pattrib = &precv_frame->u.hdr.attrib;
 	struct mlme_ext_priv *pmlmeext = &(padapter->mlmeextpriv);
 	unsigned short tid;
 
@@ -1864,14 +1863,6 @@ unsigned int OnAction_sa_query(struct adapter *padapter, union recv_frame *precv
 	default:
 		break;
 	}
-	if (0) {
-		int pp;
-
-		netdev_dbg(padapter->pnetdev, "pattrib->pktlen = %d =>", pattrib->pkt_len);
-		for (pp = 0; pp < pattrib->pkt_len; pp++)
-			pr_cont(" %02x ", pframe[pp]);
-		pr_cont("\n");
-	}
 
 	return _SUCCESS;
 }
-- 
2.52.0


  parent reply	other threads:[~2026-02-06  7:55 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-06  7:54 [PATCH v2 00/26] staging: rtl8723bs: refactor and fix various driver issues lukagejak5
2026-02-06  7:54 ` [PATCH v2 01/26] staging: rtl8723bs: fix potential out-of-bounds read in rtw_restruct_wmm_ie lukagejak5
2026-02-07 13:45   ` Greg Kroah-Hartman
2026-02-06  7:54 ` [PATCH v2 02/26] staging: rtl8723bs: rename u1bTmp to val lukagejak5
2026-02-06  7:54 ` [PATCH v2 03/26] staging: rtl8723bs: fix spacing around operators lukagejak5
2026-02-06  7:54 ` [PATCH v2 04/26] staging: rtl8723bs: modernize hex output in rtw_report_sec_ie lukagejak5
2026-02-06  7:54 ` lukagejak5 [this message]
2026-02-06  7:54 ` [PATCH v2 06/26] staging: rtl8723bs: remove unused rtl8192c function declarations lukagejak5
2026-02-06  7:54 ` [PATCH v2 07/26] staging: rtl8723bs: remove unused RECV_BLK defines lukagejak5
2026-02-06  7:54 ` [PATCH v2 08/26] staging: rtl8723bs: remove unused MAX_PATH_NUM defines lukagejak5
2026-02-06  7:54 ` [PATCH v2 09/26] staging: rtl8723bs: convert PSTA_INFO_T to struct sta_info * lukagejak5
2026-02-06  7:54 ` [PATCH v2 10/26] staging: rtl8723bs: remove NDIS type aliases lukagejak5
2026-02-06  7:54 ` [PATCH v2 11/26] staging: rtl8723bs: remove redundant MAC_ARG macro lukagejak5
2026-02-06  7:54 ` [PATCH v2 12/26] staging: rtl8723bs: core: fix line lengths in rtw_wlan_util.c lukagejak5
2026-02-06  7:54 ` [PATCH v2 13/26] staging: rtl8723bs: core: fix line lengths in rtw_recv.c lukagejak5
2026-02-06  7:54 ` [PATCH v2 14/26] staging: rtl8723bs: hal: fix line lengths in HalPhyRf_8723B.c lukagejak5
2026-02-06  7:54 ` [PATCH v2 15/26] staging: rtl8723bs: os_dep: fix line lengths in ioctl_cfg80211.c lukagejak5
2026-02-06  7:54 ` [PATCH v2 16/26] staging: rtl8723bs: hal: fix line lengths in rtl8723b_cmd.c lukagejak5
2026-02-06  7:54 ` [PATCH v2 17/26] staging: rtl8723bs: hal: fix line lengths in rtl8723b_hal_init.c lukagejak5
2026-02-06  7:54 ` [PATCH v2 18/26] staging: rtl8723bs: hal: fix line lengths in rtl8723b_phycfg.c lukagejak5
2026-02-06  7:54 ` [PATCH v2 19/26] staging: rtl8723bs: core: fix various line length overflows lukagejak5
2026-02-06  7:54 ` [PATCH v2 20/26] staging: rtl8723bs: hal: " lukagejak5
2026-02-06  7:54 ` [PATCH v2 21/26] staging: rtl8723bs: os_dep: " lukagejak5
2026-02-06  7:54 ` [PATCH v2 22/26] staging: rtl8723bs: core: fix line lengths in rtw_cmd.c lukagejak5
2026-02-06  7:54 ` [PATCH v2 23/26] staging: rtl8723bs: core: fix line lengths in rtw_mlme_ext.c lukagejak5
2026-02-06  7:54 ` [PATCH v2 24/26] staging: rtl8723bs: core: fix line lengths in rtw_mlme.c lukagejak5
2026-02-06  7:54 ` [PATCH v2 25/26] staging: rtl8723bs: core: fix line lengths in rtw_xmit.c lukagejak5
2026-02-06  7:54 ` [PATCH v2 26/26] staging: rtl8723bs: core: fix various line length overflows lukagejak5

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=20260206075439.103287-6-luka.gejak@linux.dev \
    --to=lukagejak5@gmail.com \
    --cc=dan.carpenter@linaro.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=luka.gejak@linux.dev \
    /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