Skip to content

Commit 006f661

Browse files
baxenogroeck
authored andcommitted
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>
1 parent 638196d commit 006f661

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/hwmon/tmp421.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,6 @@ static umode_t tmp421_is_visible(const void *data, enum hwmon_sensor_types type,
250250
switch (attr) {
251251
case hwmon_temp_fault:
252252
case hwmon_temp_input:
253-
return 0444;
254253
case hwmon_temp_label:
255254
return 0444;
256255
case hwmon_temp_enable:

0 commit comments

Comments
 (0)