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 2/7] staging: rtl8723bs: rtw_efuse: remove unnecessary void * casts
Date: Tue, 10 Feb 2026 06:51:28 +0700 [thread overview]
Message-ID: <20260209235133.1292161-3-horstaufmental@gmail.com> (raw)
In-Reply-To: <20260209235133.1292161-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_efuse.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/rtl8723bs/core/rtw_efuse.c b/drivers/staging/rtl8723bs/core/rtw_efuse.c
index 98b15ca10074..d1150da50260 100644
--- a/drivers/staging/rtl8723bs/core/rtw_efuse.c
+++ b/drivers/staging/rtl8723bs/core/rtw_efuse.c
@@ -69,7 +69,7 @@ u16 Address)
u32 k = 0;
u16 contentLen = 0;
- Hal_GetEfuseDefinition(Adapter, EFUSE_WIFI, TYPE_EFUSE_REAL_CONTENT_LEN, (void *)&contentLen);
+ Hal_GetEfuseDefinition(Adapter, EFUSE_WIFI, TYPE_EFUSE_REAL_CONTENT_LEN, &contentLen);
if (Address < contentLen) {/* E-fuse 512Byte */
/* Write E-fuse Register address bit0~7 */
@@ -163,7 +163,7 @@ static void Efuse_ReadAllMap(struct adapter *padapter, u8 efuseType, u8 *Efuse)
Hal_EfusePowerSwitch(padapter, true);
- Hal_GetEfuseDefinition(padapter, efuseType, TYPE_EFUSE_MAP_LEN, (void *)&mapLen);
+ Hal_GetEfuseDefinition(padapter, efuseType, TYPE_EFUSE_MAP_LEN, &mapLen);
Hal_ReadEFuse(padapter, efuseType, 0, mapLen, Efuse);
@@ -239,7 +239,7 @@ void EFUSE_ShadowMapUpdate(struct adapter *padapter, u8 efuseType)
struct eeprom_priv *pEEPROM = GET_EEPROM_EFUSE_PRIV(padapter);
u16 mapLen = 0;
- Hal_GetEfuseDefinition(padapter, efuseType, TYPE_EFUSE_MAP_LEN, (void *)&mapLen);
+ Hal_GetEfuseDefinition(padapter, efuseType, TYPE_EFUSE_MAP_LEN, &mapLen);
if (pEEPROM->bautoload_fail_flag)
memset(pEEPROM->efuse_eeprom_data, 0xFF, mapLen);
--
2.52.0
next prev parent reply other threads:[~2026-02-09 23:52 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-09 23:51 [PATCH 0/7] staging: rtl8723bs: remove unnecessary void pointer casts Siwanan Bungtong
2026-02-09 23:51 ` [PATCH 1/7] staging: rtl8723bs: rtw_ap: remove unnecessary void * casts Siwanan Bungtong
2026-02-10 2:37 ` Ethan Tidmore
2026-02-10 5:00 ` Greg KH
2026-02-10 5:21 ` Ethan Tidmore
2026-02-09 23:51 ` Siwanan Bungtong [this message]
2026-02-09 23:51 ` [PATCH 3/7] staging: rtl8723bs: rtw_ieee80211: " Siwanan Bungtong
2026-02-09 23:51 ` [PATCH 4/7] staging: rtl8723bs: rtw_mlme_ext: " Siwanan Bungtong
2026-02-09 23:51 ` [PATCH 5/7] staging: rtl8723bs: rtw_security: " Siwanan Bungtong
2026-02-09 23:51 ` [PATCH 6/7] staging: rtl8723bs: rtl8723b_hal_init: " Siwanan Bungtong
2026-02-09 23:51 ` [PATCH 7/7] staging: rtl8723bs: ioctl_cfg80211: " 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=20260209235133.1292161-3-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