]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
staging: rtl8723bs: remove unnecessary void * casts in rtw_ieee80211.c
authorSiwanan Bungtong <horstaufmental@gmail.com>
Tue, 10 Feb 2026 03:06:03 +0000 (10:06 +0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Feb 2026 14:41:30 +0000 (15:41 +0100)
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-4-horstaufmental@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_ieee80211.c

index 6cf217e21593b71c1759ffaf9c6faf80b8eba441..7648dc83a6b25ad91392cf744eb5518166a7e59b 100644 (file)
@@ -109,7 +109,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;
 }
@@ -126,7 +126,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);