Staging: rtl8723bs: core: rtw_cmd: Remove cast to pointer types in kfree
authorSrishti Sharma <srishtishar@gmail.com>
Sat, 7 Oct 2017 20:33:24 +0000 (02:03 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Oct 2017 14:04:29 +0000 (16:04 +0200)
commit512bbd7bbf22be778ee4b78a75a40e0e4c1a6d71
treeae5ba628a1e961feb67b20183e16eafa912356d6
parent8d8825b420ffb370b0a57ba764828efd08738ba0
Staging: rtl8723bs: core: rtw_cmd: Remove cast to pointer types in kfree

The cast to pointer types in kfree is not needed and can be dropped.
This was done using the following semantic patch by coccinelle,
except kfree((unsigned char*) pcmd->parmbuf) which was transformed by
hand because coccinelle didn't have enough type information.

@r@
type T,P;
T* x;
@@

kfree(
-(P *)
x )

Signed-off-by: Srishti Sharma <srishtishar@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_cmd.c