OSDN Git Service

ACPI / AC: Remove initializer for unused ident dmi_system_id
authorHans de Goede <hdegoede@redhat.com>
Thu, 12 Apr 2018 10:01:57 +0000 (12:01 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 2 May 2018 11:06:59 +0000 (13:06 +0200)
The ac.c code does not use the dmi_system_id ident member, so there is
no need to initialize it. This saves us storing the unused "thinkpad e530"
string as const data.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/ac.c

index 2d8de2f..9e4463d 100644 (file)
@@ -318,8 +318,8 @@ static int thinkpad_e530_quirk(const struct dmi_system_id *d)
 
 static const struct dmi_system_id ac_dmi_table[] = {
        {
+       /* Thinkpad e530 */
        .callback = thinkpad_e530_quirk,
-       .ident = "thinkpad e530",
        .matches = {
                DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
                DMI_MATCH(DMI_PRODUCT_NAME, "32597CG"),