staging: wilc1000: Remove useless cast.
authorVarsha Rao <rvarsha016@gmail.com>
Wed, 8 Mar 2017 04:12:46 +0000 (09:42 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Mar 2017 13:55:09 +0000 (14:55 +0100)
commit285d02a18c5932a06e52d8f68809915469e8afa2
tree2cb8f79a3c77b8865d896454efe3507c0fd19693
parent069baa6a5e010060ce4fa37977555e6b8e9b21ba
staging: wilc1000: Remove useless cast.

Variable ip_addr is already declared as pointer to u8. Again explicit type
casting of ip_addr to u8, is not required. Hence this patch removes it
by using the following coccinelle script.

@@
type T;
T *ptr,p;
@@
(
- (T *)(&p)
+ &p
|
- (T *)ptr
+ ptr
|
- (T *)(ptr)
+ ptr
|
- (T)(p)
+ p
)

Signed-off-by: Varsha Rao <rvarsha016@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c