From: Barnabás Pőcze Date: Sat, 4 Sep 2021 17:55:06 +0000 (+0000) Subject: platform/x86: wmi: remove unnecessary initialization X-Git-Tag: v5.16-rc1~139^2~100 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=9bf9ca95a16e0b9865ea09199fd6342f7f8ca049;p=linux-platform-drivers-x86.git platform/x86: wmi: remove unnecessary initialization The empty initializer `{ }` is enough to properly initialize the terminating acpi_device_id entry in the device table, so use that. Signed-off-by: Barnabás Pőcze Link: https://lore.kernel.org/r/20210904175450.156801-5-pobrn@protonmail.com Reviewed-by: Hans de Goede Signed-off-by: Hans de Goede --- diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c index 67c09d81a676..6ad5962da59b 100644 --- a/drivers/platform/x86/wmi.c +++ b/drivers/platform/x86/wmi.c @@ -91,7 +91,7 @@ static int acpi_wmi_probe(struct platform_device *device); static const struct acpi_device_id wmi_device_ids[] = { {"PNP0C14", 0}, {"pnp0c14", 0}, - {"", 0}, + { } }; MODULE_DEVICE_TABLE(acpi, wmi_device_ids);