From: Siwanan Bungtong <horstaufmental@gmail.com>
To: gregkh@linuxfoundation.org
Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org,
Siwanan Bungtong <horstaufmental@gmail.com>
Subject: [PATCH v2 3/7] staging: rtl8723bs: remove unnecessary void * casts in rtw_ieee80211.c
Date: Tue, 10 Feb 2026 10:06:03 +0700 [thread overview]
Message-ID: <20260210030607.1430567-4-horstaufmental@gmail.com> (raw)
In-Reply-To: <20260210030607.1430567-1-horstaufmental@gmail.com>
Remove redundant (void *) casts when calling memcpy/memset and
other helpers. These casts are unnecessary since C implicitly
converts to void * and they only add noise.
No functional change.
Signed-off-by: Siwanan Bungtong <horstaufmental@gmail.com>
---
drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/rtl8723bs/core/rtw_ieee80211.c b/drivers/staging/rtl8723bs/core/rtw_ieee80211.c
index 8fdeeda88a6d..d9746679a5f0 100644
--- a/drivers/staging/rtl8723bs/core/rtw_ieee80211.c
+++ b/drivers/staging/rtl8723bs/core/rtw_ieee80211.c
@@ -108,7 +108,7 @@ int rtw_check_network_type(unsigned char *rate, int ratelen, int channel)
u8 *rtw_set_fixed_ie(unsigned char *pbuf, unsigned int len, unsigned char *source,
unsigned int *frlen)
{
- memcpy((void *)pbuf, (void *)source, len);
+ memcpy(pbuf, source, len);
*frlen = *frlen + len;
return pbuf + len;
}
@@ -125,7 +125,7 @@ u8 *rtw_set_ie(u8 *pbuf,
*(pbuf + 1) = (u8)len;
if (len > 0)
- memcpy((void *)(pbuf + 2), (void *)source, len);
+ memcpy(pbuf + 2, source, len);
*frlen = *frlen + (len + 2);
--
2.52.0
next prev parent reply other threads:[~2026-02-10 3:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-10 3:06 [PATCH v2 0/7] staging: rtl8723bs: remove unnecessary void pointer casts Siwanan Bungtong
2026-02-10 3:06 ` [PATCH v2 1/7] staging: rtl8723bs: remove unnecessary void * casts in rtw_ap.c Siwanan Bungtong
2026-02-10 3:06 ` [PATCH v2 2/7] staging: rtl8723bs: remove unnecessary void * casts in rtw_efuse.c Siwanan Bungtong
2026-02-10 3:06 ` Siwanan Bungtong [this message]
2026-02-10 3:06 ` [PATCH v2 4/7] staging: rtl8723bs: remove unnecessary void * casts in rtw_mlme_ext.c Siwanan Bungtong
2026-02-10 3:06 ` [PATCH v2 5/7] staging: rtl8723bs: remove unnecessary void * casts in rtw_security.c Siwanan Bungtong
2026-02-10 3:06 ` [PATCH v2 6/7] staging: rtl8723bs: remove unnecessary void * casts in rtl8723b_hal_init.c Siwanan Bungtong
2026-02-10 3:06 ` [PATCH v2 7/7] staging: rtl8723bs: remove unnecessary void * casts in ioctl_cfg80211.c Siwanan Bungtong
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=20260210030607.1430567-4-horstaufmental@gmail.com \
--to=horstaufmental@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.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
all inboxes | Powered by JetHome®