Commit 006f661e authored by Bruno Thomsen's avatar Bruno Thomsen Committed by Guenter Roeck
Browse files

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: default avatarBruno Thomsen <bruno.thomsen@gmail.com>
Link: https://lore.kernel.org/r/20251111144406.7489-2-bruno.thomsen@gmail.com


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 638196d4
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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: