summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiwanan Bungtong <horstaufmental@gmail.com>2026-02-10 06:06:05 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-02-23 17:41:30 +0300
commit102e8dbdfd85546728b3f2754c1c50e2879962f4 (patch)
treea40cc60f36f6b7f1b4e2ceb8ef2572f91938a359
parentee98bf15839a70e770efdb57d62f9cf7d32d0a2e (diff)
downloadlinux-102e8dbdfd85546728b3f2754c1c50e2879962f4.tar.xz
staging: rtl8723bs: remove unnecessary void * casts in rtw_security.c
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> Link: https://patch.msgid.link/20260210030607.1430567-6-horstaufmental@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/rtl8723bs/core/rtw_security.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8723bs/core/rtw_security.c b/drivers/staging/rtl8723bs/core/rtw_security.c
index 1a6dd4f4bdda..99ad9dbcba9c 100644
--- a/drivers/staging/rtl8723bs/core/rtw_security.c
+++ b/drivers/staging/rtl8723bs/core/rtw_security.c
@@ -1091,7 +1091,7 @@ static signed int aes_decipher(u8 *key, uint hdrlen,
/* start to calculate the mic */
if ((hdrlen + plen + 8) <= MAX_MSG_SIZE)
- memcpy((void *)message, pframe, (hdrlen + plen + 8)); /* 8 is for ext iv len */
+ memcpy(message, pframe, (hdrlen + plen + 8)); /* 8 is for ext iv len */
pn_vector[0] = pframe[hdrlen];
pn_vector[1] = pframe[hdrlen + 1];