Linux Hardware Monitor development
 help / color / mirror / Atom feed
From: Bruno Thomsen <bruno.thomsen@gmail.com>
To: linux-hwmon@vger.kernel.org
Cc: Guenter Roeck <linux@roeck-us.net>,
	Bruno Thomsen <bruno.thomsen@gmail.com>,
	linux-kernel@vger.kernel.org
Subject: [PATCH 2/2] hwmon: tmp421: remove duplicate return in switch-case
Date: Tue, 11 Nov 2025 15:44:06 +0100	[thread overview]
Message-ID: <20251111144406.7489-2-bruno.thomsen@gmail.com> (raw)
In-Reply-To: <20251111144406.7489-1-bruno.thomsen@gmail.com>

Use single read permission return in switch-case that handles
attributes in tmp421_is_visible().

Signed-off-by: Bruno Thomsen <bruno.thomsen@gmail.com>
---
 drivers/hwmon/tmp421.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/hwmon/tmp421.c b/drivers/hwmon/tmp421.c
index 1eded169e843..23ed3fbc9c99 100644
--- a/drivers/hwmon/tmp421.c
+++ b/drivers/hwmon/tmp421.c
@@ -262,7 +262,6 @@ static umode_t tmp421_is_visible(const void *data, enum hwmon_sensor_types type,
 	switch (attr) {
 	case hwmon_temp_fault:
 	case hwmon_temp_input:
-		return 0444;
 	case hwmon_temp_label:
 		return 0444;
 	case hwmon_temp_enable:
-- 
2.51.1


  reply	other threads:[~2025-11-11 14:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-11 14:44 [PATCH 1/2] hwmon: tmp421: check error when loading label from dt Bruno Thomsen
2025-11-11 14:44 ` Bruno Thomsen [this message]
2025-11-12 20:15   ` [PATCH 2/2] hwmon: tmp421: remove duplicate return in switch-case Guenter Roeck
2025-11-12 20:15 ` [PATCH 1/2] hwmon: tmp421: check error when loading label from dt Guenter Roeck

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=20251111144406.7489-2-bruno.thomsen@gmail.com \
    --to=bruno.thomsen@gmail.com \
    --cc=linux-hwmon@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@roeck-us.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox