usb: storage: ene_ub6250: Remove unnecessary cast in kfree
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Tue, 26 Jan 2016 18:42:23 +0000 (00:12 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2016 21:48:12 +0000 (13:48 -0800)
commite6533e879fd24f36c50a9db3b41d3433784222ff
tree1dade7630377f19a23d32e27963ddee000d1eb27
parentd078c6e4ea5e6a93d44d5815d0ee4a9bb5c5718b
usb: storage: ene_ub6250: 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/usb/storage/ene_ub6250.c