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:
Rosen Penev 2026-07-10 12:46:29 -07:00 committed by Jonas Jelonek
parent 80c8eceeda
commit a88866c5c4
No known key found for this signature in database
3 changed files with 3 additions and 3 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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;