staging: comedi: Remove useless cast.
authorVarsha Rao <rvarsha016@gmail.com>
Thu, 9 Mar 2017 14:19:01 +0000 (19:49 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Mar 2017 18:07:57 +0000 (19:07 +0100)
commita2be06266b65c17df7ec5d1331670eb61b848993
tree6fe7ec35a2d06ac73de3374e1cb6cf3d0a6a32cc
parentd493859392000828804c0f1bfe500e3ce17d533f
staging: comedi: Remove useless cast.

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

@@
type T;
T *ptr;
T 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/comedi/drivers/s626.c