Commit de69a087 authored by Gergo Koteles's avatar Gergo Koteles Committed by Rafael J. Wysocki
Browse files

ACPI: x86: s2idle: Remove dead code in lps0_device_attach()



The rev_id is always 0 for AMD since commit
e32d546483a2 ("ACPI: x86: Drop quirk for HP Elitebook"),
so this condition will never be true.

Remove the dead code.

Signed-off-by: default avatarGergo Koteles <soyer@irl.hu>
Reviewed-by: default avatarMario Limonciello (AMD) <superm1@kernel.org>
Link: https://patch.msgid.link/20260109001619.37532-1-soyer@irl.hu


Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent a00e771c
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -463,9 +463,6 @@ static int lps0_device_attach(struct acpi_device *adev,
			lps0_dsm_func_mask = (lps0_dsm_func_mask << 1) | 0x1;
			acpi_handle_debug(adev->handle, "_DSM UUID %s: Adjusted function mask: 0x%x\n",
					  ACPI_LPS0_DSM_UUID_AMD, lps0_dsm_func_mask);
		} else if (lps0_dsm_func_mask_microsoft > 0 && rev_id) {
			lps0_dsm_func_mask_microsoft = -EINVAL;
			acpi_handle_debug(adev->handle, "_DSM Using AMD method\n");
		}
	} else {
		rev_id = 1;