mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 12:16:29 -04:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
94858fecca
commit
0df4e3e9bb
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user