[PATCH v2 3/3] platform/x86: hp-wmi: Remove unused platform_profile_support variable
From: Justin Vargas
Date: Sun Sep 20 2026 - 22:21:23 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/hp/hp-wmi.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/platform/x86/hp/hp-wmi.c b/drivers/platform/x86/hp/hp-wmi.c
index 7ab81ce5f8d..1f165e8e1a4 100644
--- a/drivers/platform/x86/hp/hp-wmi.c
+++ b/drivers/platform/x86/hp/hp-wmi.c
@@ -556,7 +556,6 @@ static struct platform_device *hp_wmi_platform_dev;
static struct device *platform_profile_device;
static struct notifier_block platform_power_source_nb;
static enum platform_profile_option active_platform_profile;
-static bool platform_profile_support;
static bool zero_insize_support;
static struct rfkill *wifi_rfkill;
@@ -2531,7 +2530,6 @@ static int thermal_profile_setup(struct platform_device *device)
return PTR_ERR(platform_profile_device);
pr_info("Registered as platform profile handler\n");
- platform_profile_support = true;
return 0;
}
--
2.47.3