[PATCH v2 2/3] platform/x86: asus-wmi: Remove unused platform_profile_support member
From: Justin Vargas
Date: Sun Sep 20 2026 - 22:19:03 EST
The platform_profile_support member of struct asus_wmi 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/asus-wmi.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/platform/x86/asus-wmi.c b/drivers/platform/x86/asus-wmi.c
index 711f59c1aa6..3e630312139 100644
--- a/drivers/platform/x86/asus-wmi.c
+++ b/drivers/platform/x86/asus-wmi.c
@@ -320,7 +320,6 @@ struct asus_wmi {
struct fan_curve_data custom_fan_curves[3];
struct device *ppdev;
- bool platform_profile_support;
// The RSOC controls the maximum charging percentage.
bool battery_rsoc_available;
@@ -4332,7 +4331,6 @@ static int platform_profile_setup(struct asus_wmi *asus)
return PTR_ERR(asus->ppdev);
}
- asus->platform_profile_support = true;
return 0;
}
--
2.47.3