Skip to content

Commit 78989d9

Browse files
simransinghalgregkh
authored andcommitted
staging: rtl8723bs: hal: Remove unnecessary cast on void pointer
Assignment to a typed pointer is sufficient in C. No cast is needed. The following Coccinelle script was used to detect this: @r@ expression x; void* e; type T; identifier f; @@ ( *((T *)e) | ((T *)x)[...] | ((T*)x)->f | - (T*) e ) Signed-off-by: Simran Singhal <[email protected]> Link: https://lore.kernel.org/r/20200326113210.GA29951@simran-Inspiron-5558 Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 57e0ff1 commit 78989d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/staging/rtl8723bs/hal/odm_CfoTracking.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ void ODM_CfoTracking(void *pDM_VOID)
298298
void ODM_ParsingCFO(void *pDM_VOID, void *pPktinfo_VOID, s8 *pcfotail)
299299
{
300300
PDM_ODM_T pDM_Odm = (PDM_ODM_T)pDM_VOID;
301-
struct odm_packet_info *pPktinfo = (struct odm_packet_info *)pPktinfo_VOID;
301+
struct odm_packet_info *pPktinfo = pPktinfo_VOID;
302302
PCFO_TRACKING pCfoTrack = &pDM_Odm->DM_CfoTrack;
303303
u8 i;
304304

0 commit comments

Comments
 (0)