summaryrefslogtreecommitdiff
path: root/drivers/hwmon/tmp421.c
diff options
context:
space:
mode:
authorBruno Thomsen <bruno.thomsen@gmail.com>2025-11-11 15:44:06 +0100
committerGuenter Roeck <linux@roeck-us.net>2025-11-13 12:23:19 -0800
commit006f661e024f2f0e89f3b458a3db0b10b657afa5 (patch)
treed04f33adf1a48e4b987724ff41183e99105ba8b7 /drivers/hwmon/tmp421.c
parent638196d43bd3c8548c6576d26475e071c023a9b3 (diff)
hwmon: (tmp421) Remove duplicate return in switch-case
Use single read permission return in switch-case that handles attributes in tmp421_is_visible(). Signed-off-by: Bruno Thomsen <bruno.thomsen@gmail.com> Link: https://lore.kernel.org/r/20251111144406.7489-2-bruno.thomsen@gmail.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/tmp421.c')
-rw-r--r--drivers/hwmon/tmp421.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/hwmon/tmp421.c b/drivers/hwmon/tmp421.c
index 5d6babdadf89..2ea9d3e9553d 100644
--- a/drivers/hwmon/tmp421.c
+++ b/drivers/hwmon/tmp421.c
@@ -250,7 +250,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: