Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Bruno Thomsen and committed by
Guenter Roeck
006f661e 638196d4

-1
-1
drivers/hwmon/tmp421.c
··· 250 250 switch (attr) { 251 251 case hwmon_temp_fault: 252 252 case hwmon_temp_input: 253 - return 0444; 254 253 case hwmon_temp_label: 255 254 return 0444; 256 255 case hwmon_temp_enable: