staging: rtl8723bs: Remove unnecessary cast in kfree
commit428715bac69b98253e33c0034c829114481d5b32
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Wed, 14 Jun 2017 22:33:03 +0000 (14 18:33 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Jun 2017 17:36:49 +0000 (23 19:36 +0200)
treec94835fbad65e7a598beaa4389e89bbfc8eca051
parent7bb0dffd0516b07cf23fe5121a0b1d4f55566cf6
staging: rtl8723bs: Remove unnecessary cast in kfree

Remove unnecassary casts in the argument to kfree.

Found using Coccinelle. The semantic patch used to find this is as
follows:

//<smpl>
@@
type T;
expression *f;
@@

- kfree((T *)(f));
+ kfree(f);
//</smpl>

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/os_dep/ioctl_linux.c