]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
hwmon: (max6621) Fix fall-through warnings for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 20 Nov 2020 18:36:09 +0000 (12:36 -0600)
committerGustavo A. R. Silva <gustavoars@kernel.org>
Tue, 18 May 2021 00:50:37 +0000 (19:50 -0500)
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning
by explicitly adding a break statement instead of letting the code fall
through to the next case.

Link: https://github.com/KSPP/linux/issues/115
Acked-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
drivers/hwmon/max6621.c

index 367855d5edaee36e83b00a8ca7ad6d5aea3fb714..7821132e17faa850ac20c4249fa5ae2bf14b784a 100644 (file)
@@ -156,7 +156,7 @@ max6621_is_visible(const void *data, enum hwmon_sensor_types type, u32 attr,
                default:
                        break;
                }
-
+               break;
        default:
                break;
        }