Skip to content

Commit

Permalink
ACPI / AC: Remove initializer for unused ident dmi_system_id
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hans de Goede authored and Rafael J. Wysocki committed May 2, 2018
1 parent 6da6c0d commit 6605e34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/acpi/ac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit 6605e34

Please sign in to comment.