]> asedeno.scripts.mit.edu Git - linux.git/commit
Staging: rtl8723bs/os_dep: Remove typecast in kfree
authorMeghana Madhyastha <meghana.madhyastha@gmail.com>
Sat, 16 Sep 2017 08:12:16 +0000 (13:42 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Sep 2017 10:00:07 +0000 (12:00 +0200)
commitc8d5fa75141bec422be82117c826e78e715a9007
treeacedfcd93407b8b41ec65f44ce4266d8dd6b1ee0
parentdedc1a73c3f17d66d3fd48d437a6d3352bd37f4e
Staging: rtl8723bs/os_dep: Remove typecast in kfree

Remove typecast of pointer in kfree((u8 *)pdvobj) as
it is not needed.

Found using the following Coccinelle semantic patch:
@@
identifier x;
type t;
@@

-kfree((t *)x)
+kfree(x)

Signed-off-by: Meghana Madhyastha <meghana.madhyastha@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/os_dep/os_intfs.c