[PATCH] ACPI: x86: s2idle: Revmoe unused variable hid

Alex Hung alex.hung at amd.com
Wed Oct 26 17:33:40 UTC 2022


This unused variable can cause build failures with allmodconfig, and
therefore it should be removed.

Note: this does not applied to mainline (included in 100a57379380) but
to amd-staging-drm-next only.

Fixes: 6648f8587530 ("ACPI: x86: s2idle: Move _HID handling for AMD systems into structures")
Signed-off-by: Alex Hung <alex.hung at amd.com>
---
 drivers/acpi/x86/s2idle.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/acpi/x86/s2idle.c b/drivers/acpi/x86/s2idle.c
index bfe611dc08cc..3d0cf0ace4a9 100644
--- a/drivers/acpi/x86/s2idle.c
+++ b/drivers/acpi/x86/s2idle.c
@@ -475,7 +475,6 @@ static int lps0_device_attach(struct acpi_device *adev,
 						    ACPI_LPS0_DSM_UUID_MICROSOFT, 0,
 						    &lps0_dsm_guid_microsoft);
 	if (acpi_s2idle_vendor_amd()) {
-		const char *hid = acpi_device_hid(adev);
 		static const struct acpi_device_id *dev_id;
 		const struct amd_lps0_hid_device_data *data;
 
-- 
2.38.1



More information about the amd-gfx mailing list