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 1/3] platform/x86: acer-wmi: Remove unused platform_profile_support variable
Date: Sun, 20 Sep 2026 22:17:18 -0400	[thread overview]
Message-ID: <20260921021720.5976-2-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/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


  reply	other threads:[~2026-09-21  2:18 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 ` Justin Vargas [this message]
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 ` [PATCH v2 3/3] platform/x86: hp-wmi: Remove unused platform_profile_support variable Justin Vargas
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=20260921021720.5976-2-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.