2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-25 23:26:03 +08:00
linux-next/drivers/staging/rtl8723bs
Simran Singhal 78989d9ab8 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 <singhalsimran0@gmail.com>
Link: https://lore.kernel.org/r/20200326113210.GA29951@simran-Inspiron-5558
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-03-26 15:45:08 +01:00
..
core staging: rtl8723bs: rtw_cmd: Compress lines for immediate return 2020-03-26 08:37:38 +01:00
hal staging: rtl8723bs: hal: Remove unnecessary cast on void pointer 2020-03-26 15:45:08 +01:00
include staging: rtl8723bs: Fix spacing issues 2020-02-14 08:18:23 -08:00
os_dep staging: rtl8723bs: os_dep: Remove whitespace characters in code line 2020-03-21 10:36:13 +01:00
Kconfig staging: rtl8723bs: use help instead of ---help--- in Kconfig 2019-05-20 10:49:08 +02:00
Makefile staging: rtl8723bs: Remove debugging information exposed via procfs 2019-08-14 13:20:12 +02:00
TODO staging: rtl8723bs: Remove myself from CC: 2019-06-20 14:32:07 +02:00