Skip to content

Commit de69a08

Browse files
soyersoyerrafaeljw
authored andcommitted
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: Gergo Koteles <soyer@irl.hu> Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org> Link: https://patch.msgid.link/20260109001619.37532-1-soyer@irl.hu Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent a00e771 commit de69a08

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

drivers/acpi/x86/s2idle.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -463,9 +463,6 @@ static int lps0_device_attach(struct acpi_device *adev,
463463
lps0_dsm_func_mask = (lps0_dsm_func_mask << 1) | 0x1;
464464
acpi_handle_debug(adev->handle, "_DSM UUID %s: Adjusted function mask: 0x%x\n",
465465
ACPI_LPS0_DSM_UUID_AMD, lps0_dsm_func_mask);
466-
} else if (lps0_dsm_func_mask_microsoft > 0 && rev_id) {
467-
lps0_dsm_func_mask_microsoft = -EINVAL;
468-
acpi_handle_debug(adev->handle, "_DSM Using AMD method\n");
469466
}
470467
} else {
471468
rev_id = 1;

0 commit comments

Comments
 (0)