]> git.baikalelectronics.ru Git - kernel.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)
commit5a8348973046a3b24e0fbb1a6d46e4f52a4c881b
treeacedfcd93407b8b41ec65f44ce4266d8dd6b1ee0
parenta2e07b74adab0647f5ee2cd1b5533b6086d12339
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