From: Bruno Thomsen Date: Tue, 11 Nov 2025 14:44:06 +0000 (+0100) Subject: hwmon: (tmp421) Remove duplicate return in switch-case X-Git-Tag: v6.19-rc1~148^2~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=006f661e024f2f0e89f3b458a3db0b10b657afa5;p=thirdparty%2Fkernel%2Flinux.git 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 Link: https://lore.kernel.org/r/20251111144406.7489-2-bruno.thomsen@gmail.com Signed-off-by: Guenter Roeck --- diff --git a/drivers/hwmon/tmp421.c b/drivers/hwmon/tmp421.c index 5d6babdadf895..2ea9d3e9553db 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: