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 <[email protected]> Signed-off-by: Gustavo A. R. Silva <[email protected]>
1 parent 3752445 commit 58e31cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)