mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 06:41:39 -04:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ee98bf1583
commit
102e8dbdfd
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user