x86/shutdown: use DMI_MATCH2()

... to please Misra C:2012 Rule 9.3 (Arrays shall not be partially
initialized).

Fixes: d81dd31303 ("x86/shutdown: change default reboot method preference")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
This commit is contained in:
Jan Beulich committed 2024-08-06 08:37:10 +02:00
1 parent 10eccbb821
commit 44a37c7832
1 file changed
+2 -3
+2 -3
View File
@@ -498,10 +498,9 @@ static const struct dmi_system_id __initconstrel reboot_dmi_table[] = {
.callback = override_reboot,
.driver_data = (void *)(long)BOOT_EFI,
.ident = "Acer TravelMate X514-51T",
.matches = {
DMI_MATCH2(
DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate X514-51T"),
},
DMI_MATCH(DMI_PRODUCT_NAME, "TravelMate X514-51T")),
},
{ }
};
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.