treewide: remove weird double void casting
This must be some older compiler and kernel warning. Signed-off-by: Rosen Penev <rosenp@gmail.com> Link: https://github.com/openwrt/openwrt/pull/24177 Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
This commit is contained in:
parent
80c8eceeda
commit
a88866c5c4
3 changed files with 3 additions and 3 deletions
|
|
@ -203,7 +203,7 @@ static int button_hotplug_create_event(const char *name, unsigned long seen,
|
|||
event->seen = seen;
|
||||
event->action = pressed ? "pressed" : "released";
|
||||
|
||||
INIT_WORK(&event->work, (void *)(void *)button_hotplug_work);
|
||||
INIT_WORK(&event->work, button_hotplug_work);
|
||||
schedule_work(&event->work);
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -219,7 +219,7 @@ static int button_hotplug_create_event(const char *name, unsigned int type,
|
|||
event->seen = seen;
|
||||
event->action = pressed ? "pressed" : "released";
|
||||
|
||||
INIT_WORK(&event->work, (void *)(void *)button_hotplug_work);
|
||||
INIT_WORK(&event->work, button_hotplug_work);
|
||||
schedule_work(&event->work);
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
|
|
@ -188,7 +188,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
|
|||
+
|
||||
+ event->name = "motion";
|
||||
+
|
||||
+ INIT_WORK(&event->work, (void *)(void *)motion_hotplug_work);
|
||||
+ INIT_WORK(&event->work, motion_hotplug_work);
|
||||
+ schedule_work(&event->work);
|
||||
+
|
||||
+ return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue