diff options
author | Shraddha Barke <shraddha.6596@gmail.com> | 2015-08-10 13:30:35 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-08-14 18:44:45 -0700 |
commit | 0df4e3e9bbf8968d5ff079b0ace3de9c0b971021 (patch) | |
tree | 3b60d2c15501e0ae7ea54af04a5c935b04d67ef6 /drivers/staging | |
parent | Staging: lustre: libcfs: Remove unnecessary cast on void* (diff) | |
download | linux-dev-0df4e3e9bbf8968d5ff079b0ace3de9c0b971021.tar.xz linux-dev-0df4e3e9bbf8968d5ff079b0ace3de9c0b971021.zip |
Staging: unisys: Remove useless cast on void pointer
void pointers do not need to be cast to other pointer types.
The semantic patch used to find this:
@r@
expression x;
void* e;
type T;
identifier f;
@@
(
*((T *)e)
|
((T *)x)[...]
|
((T *)x)->f
|
- (T *)
e
)
Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/unisys/visorbus/visorbus_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/unisys/visorbus/visorbus_main.c b/drivers/staging/unisys/visorbus/visorbus_main.c index cc4a0292c287..ac39febdac55 100644 --- a/drivers/staging/unisys/visorbus/visorbus_main.c +++ b/drivers/staging/unisys/visorbus/visorbus_main.c @@ -716,7 +716,7 @@ unregister_driver_attributes(struct visor_driver *drv) static void dev_periodic_work(void *xdev) { - struct visor_device *dev = (struct visor_device *)xdev; + struct visor_device *dev = xdev; struct visor_driver *drv = to_visor_driver(dev->device.driver); down(&dev->visordriver_callback_lock); |