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

index 864cd8b6d1f199b50ab5a26bedf39172e8eebb79..29c476f0e8024dbccc49aca3ddbb6ecde7ed18f8 100644 (file)
@@ -388,7 +388,7 @@ void update_bmc_sta(struct adapter *padapter)
 
                psta->ieee8021x_blocked = false;
 
-               memset((void *)&psta->sta_stats, 0, sizeof(struct stainfo_stats));
+               memset(&psta->sta_stats, 0, sizeof(struct stainfo_stats));
 
                /* prepare for add_ratid */
                support_rate_num = rtw_get_rateset_len((u8 *)&pcur_network->supported_rates);
@@ -545,7 +545,7 @@ void update_sta_info_apmode(struct adapter *padapter, struct sta_info *psta)
 
        /* todo: init other variables */
 
-       memset((void *)&psta->sta_stats, 0, sizeof(struct stainfo_stats));
+       memset(&psta->sta_stats, 0, sizeof(struct stainfo_stats));
 
        /* add ratid */
        /* add_ratid(padapter, psta); move to ap_sta_info_defer_update() */