Explorar el Código

ACPI / AC: Remove initializer for unused ident dmi_system_id

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>
Hans de Goede hace 7 años
padre
commit
6605e3423f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      drivers/acpi/ac.c

+ 1 - 1
drivers/acpi/ac.c

@@ -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"),