]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ipmi: Drop unused assignment of platform_device_id driver data
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Tue, 16 Jun 2026 14:29:52 +0000 (16:29 +0200)
committerCorey Minyard <corey@minyard.net>
Tue, 16 Jun 2026 19:26:36 +0000 (14:26 -0500)
The driver explicitly sets the .driver_data member of struct
platform_device_id to zero without relying on that value. Drop these
unused assignments.

Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Message-ID: <9afdb7b0894f51fba78c64612428f7bb117901d1.1781620139.git.u.kleine-koenig@baylibre.com>
Signed-off-by: Corey Minyard <corey@minyard.net>
drivers/char/ipmi/ipmi_si_platform.c

index 704b06c919f0301c63e0b55a99fbedb491c9c804..bdc481ce13028a5cca399939f29a09d8ad18fe61 100644 (file)
@@ -436,9 +436,9 @@ void ipmi_remove_platform_device_by_name(char *name)
 }
 
 static const struct platform_device_id si_plat_ids[] = {
-       { "dmi-ipmi-si", 0 },
-       { "hardcode-ipmi-si", 0 },
-       { "hotmod-ipmi-si", 0 },
+       { .name = "dmi-ipmi-si" },
+       { .name = "hardcode-ipmi-si" },
+       { .name = "hotmod-ipmi-si" },
        { }
 };