[PATCH v2 1/3] platform/x86: acer-wmi: Remove unused platform_profile_support variable

From: Justin Vargas

Date: Sun Sep 20 2026 - 22:18:44 EST


The platform_profile_support variable is assigned during platform
profile setup but is never read anywhere in the driver. Remove it.

Assisted-by: Claude:claude-opus-5
Signed-off-by: Justin Vargas <justinyvar@xxxxxxxxx>
---
drivers/platform/x86/acer-wmi.c | 3 ---
1 file changed, 3 deletions(-)

diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c
index d3d741aad55..657d23c8f9a 100644
--- a/drivers/platform/x86/acer-wmi.c
+++ b/drivers/platform/x86/acer-wmi.c
@@ -859,7 +859,6 @@ static const struct dmi_system_id non_acer_quirks[] __initconst = {
};

static struct device *platform_profile_device;
-static bool platform_profile_support;

/*
* The profile used before turbo mode. This variable is needed for
@@ -2219,8 +2218,6 @@ static int acer_platform_profile_setup(struct platform_device *device)
&device->dev, "acer-wmi", NULL, &acer_predator_v4_platform_profile_ops);
if (IS_ERR(platform_profile_device))
return PTR_ERR(platform_profile_device);
-
- platform_profile_support = true;
}
return 0;
}
--
2.47.3