]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
staging: rtl8723bs: remove unnecessary void * casts in rtw_security.c
authorSiwanan Bungtong <horstaufmental@gmail.com>
Tue, 10 Feb 2026 03:06:05 +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-6-horstaufmental@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_security.c

index 1a6dd4f4bddad0a3976eacd1d8cca49b8bef569a..99ad9dbcba9cf18d8c646ef2f14fca2a54a30705 100644 (file)
@@ -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];