OSDN Git Service

staging: rtl8723bs: os_dep: Remove typecast in kfree
authorNachammai Karuppiah <nachukannan@gmail.com>
Tue, 8 Oct 2019 05:09:13 +0000 (22:09 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Oct 2019 12:48:42 +0000 (14:48 +0200)
commita30b30f00462b5bc685a39f46a7a9623ea45bdab
tree94e17df25a3bfc99fad0bbd87be521259fefcf0e
parentc67855589ca0bfb86924dc0c1a2592a38c95798b
staging: rtl8723bs: os_dep: Remove typecast in kfree

Remove typecast in the call to kfree as it is not needed.
Issue found using the below coccinelle script,

@@
type t1;
expression e;
@@

-kfree((t1 *)e);
+kfree(e);

Signed-off-by: Nachammai Karuppiah <nachukannan@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Link: https://lore.kernel.org/r/1570511353-64646-1-git-send-email-nachukannan@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c
drivers/staging/rtl8723bs/os_dep/os_intfs.c