Skip to content

Commit 58e31cf

Browse files
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: KSPP#115 Acked-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
1 parent 3752445 commit 58e31cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/hwmon/max6621.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ max6621_is_visible(const void *data, enum hwmon_sensor_types type, u32 attr,
156156
default:
157157
break;
158158
}
159-
159+
break;
160160
default:
161161
break;
162162
}

0 commit comments

Comments
 (0)