All of lore.kernel.org
 help / color / mirror / Atom feed
From: Justin Vargas <justinyvar@gmail.com>
To: ilpo.jarvinen@linux.intel.com, hansg@kernel.org, jlee@suse.com,
	corentin.chary@gmail.com, luke@ljones.dev,
	denis.benato@linux.dev
Cc: W_Armin@gmx.de, krishna.chomal108@gmail.com,
	platform-driver-x86@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Justin Vargas <justinyvar@gmail.com>
Subject: [PATCH v2 3/3] platform/x86: hp-wmi: Remove unused platform_profile_support variable
Date: Sun, 20 Sep 2026 22:20:01 -0400	[thread overview]
Message-ID: <20260921022001.6020-1-justinyvar@gmail.com> (raw)
In-Reply-To: <20260921021720.5976-1-justinyvar@gmail.com>

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@gmail.com>
---
 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


  parent reply	other threads:[~2026-09-21  2:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-21  2:17 [PATCH v2 0/3] platform/x86: Remove unused platform_profile_support variables Justin Vargas
2026-09-21  2:17 ` [PATCH v2 1/3] platform/x86: acer-wmi: Remove unused platform_profile_support variable Justin Vargas
2026-09-21  2:17 ` [PATCH v2 2/3] platform/x86: asus-wmi: Remove unused platform_profile_support member Justin Vargas
2026-09-21  2:20 ` Justin Vargas [this message]
2026-10-05 18:24 ` [PATCH v2 0/3] platform/x86: Remove unused platform_profile_support variables Ilpo Järvinen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260921022001.6020-1-justinyvar@gmail.com \
    --to=justinyvar@gmail.com \
    --cc=W_Armin@gmx.de \
    --cc=corentin.chary@gmail.com \
    --cc=denis.benato@linux.dev \
    --cc=hansg@kernel.org \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=jlee@suse.com \
    --cc=krishna.chomal108@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luke@ljones.dev \
    --cc=platform-driver-x86@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.