diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2020-11-20 19:36:09 +0100 |
---|---|---|
committer | Gustavo A. R. Silva <gustavoars@kernel.org> | 2021-05-18 02:50:37 +0200 |
commit | 58e31cf015e68e2696cbced6f2128ec68162ef17 (patch) | |
tree | 707889402adda40d88ff4bec1475898ab2e8e3cb /drivers/hwmon/max6621.c | |
parent | hwmon: (corsair-cpro) Fix fall-through warnings for Clang (diff) | |
download | linux-58e31cf015e68e2696cbced6f2128ec68162ef17.tar.xz linux-58e31cf015e68e2696cbced6f2128ec68162ef17.zip |
hwmon: (max6621) Fix fall-through warnings for Clang
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>
Diffstat (limited to 'drivers/hwmon/max6621.c')
-rw-r--r-- | drivers/hwmon/max6621.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/max6621.c b/drivers/hwmon/max6621.c index 367855d5edae..7821132e17fa 100644 --- a/drivers/hwmon/max6621.c +++ b/drivers/hwmon/max6621.c @@ -156,7 +156,7 @@ max6621_is_visible(const void *data, enum hwmon_sensor_types type, u32 attr, default: break; } - + break; default: break; } |