]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
hwmon: (tmp421) Remove duplicate return in switch-case
authorBruno Thomsen <bruno.thomsen@gmail.com>
Tue, 11 Nov 2025 14:44:06 +0000 (15:44 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 13 Nov 2025 20:23:19 +0000 (12:23 -0800)
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>
drivers/hwmon/tmp421.c

index 5d6babdadf895a5eef5d3343038cdcf0c50d2db5..2ea9d3e9553db85c3a6f5ef36cd38c881bb164c9 100644 (file)
@@ -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: