From: Martin Kaiser <martin@kaiser.cx>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Larry Finger <Larry.Finger@lwfinger.net>,
Phillip Potter <phil@philpotter.co.uk>,
Michael Straube <straube.linux@gmail.com>,
linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org,
Martin Kaiser <martin@kaiser.cx>
Subject: [PATCH 1/6] staging: r8188eu: remove unnecessary initializations
Date: Sat, 5 Mar 2022 19:53:46 +0100 [thread overview]
Message-ID: <20220305185351.1409232-2-martin@kaiser.cx> (raw)
In-Reply-To: <20220305185351.1409232-1-martin@kaiser.cx>
Do not initialise bPacketMatchBSSID, bPacketToSelf and bPacketBeacon to
false at the start of update_recvframe_phyinfo_88e. All of them are set to
their actual values before they're used.
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
---
drivers/staging/r8188eu/hal/rtl8188e_rxdesc.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/drivers/staging/r8188eu/hal/rtl8188e_rxdesc.c b/drivers/staging/r8188eu/hal/rtl8188e_rxdesc.c
index b4c9738ed868..387af789797d 100644
--- a/drivers/staging/r8188eu/hal/rtl8188e_rxdesc.c
+++ b/drivers/staging/r8188eu/hal/rtl8188e_rxdesc.c
@@ -118,10 +118,6 @@ void update_recvframe_phyinfo_88e(struct recv_frame *precvframe, struct phy_stat
struct sta_priv *pstapriv;
struct sta_info *psta;
- pkt_info.bPacketMatchBSSID = false;
- pkt_info.bPacketToSelf = false;
- pkt_info.bPacketBeacon = false;
-
pkt_info.bPacketMatchBSSID = ((!IsFrameTypeCtrl(wlanhdr)) &&
!pattrib->icv_err && !pattrib->crc_err &&
!memcmp(get_hdr_bssid(wlanhdr),
--
2.30.2
next prev parent reply other threads:[~2022-03-05 18:54 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-05 18:53 [PATCH 0/6] staging: r8188eu: some rx cleanups Martin Kaiser
2022-03-05 18:53 ` Martin Kaiser [this message]
2022-03-05 18:53 ` [PATCH 2/6] staging: r8188eu: remove three unused receive defines Martin Kaiser
2022-03-05 18:53 ` [PATCH 3/6] staging: r8188eu: remove unused function prototype Martin Kaiser
2022-03-05 18:53 ` [PATCH 4/6] staging: r8188eu: make rtl8188e_process_phy_info static Martin Kaiser
2022-03-05 18:53 ` [PATCH 5/6] staging: r8188eu: remove some unused local ieee80211 macros Martin Kaiser
2022-03-05 18:53 ` [PATCH 6/6] staging: r8188eu: remove local BIT macro Martin Kaiser
2022-03-14 17:30 ` [PATCH 0/6] staging: r8188eu: some rx cleanups Greg Kroah-Hartman
2022-03-15 20:55 ` Martin Kaiser
2022-03-16 6:39 ` Greg Kroah-Hartman
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=20220305185351.1409232-2-martin@kaiser.cx \
--to=martin@kaiser.cx \
--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 \
--cc=straube.linux@gmail.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
all inboxes | Powered by JetHome®