]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite92279e33945496cd0609e6478d092232640242b
tree2cb8f79a3c77b8865d896454efe3507c0fd19693
parent22a372eec0b17fbe716b993ab9bcc62d9e0fa6f1
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