[PATCH 2/2] hwmon: tmp421: remove duplicate return in switch-case
From: Bruno Thomsen
Date: Tue Nov 11 2025 - 09:44:36 EST
Use single read permission return in switch-case that handles
attributes in tmp421_is_visible().
Signed-off-by: Bruno Thomsen <bruno.thomsen@xxxxxxxxx>
---
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