Skip to content

Commit 3752445

Browse files
hwmon: (corsair-cpro) 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]> Marius Zachmann <[email protected]> Signed-off-by: Gustavo A. R. Silva <[email protected]>
1 parent 5ef73b6 commit 3752445

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/hwmon/corsair-cpro.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ static int ccp_write(struct device *dev, enum hwmon_sensor_types type,
310310
default:
311311
break;
312312
}
313+
break;
313314
default:
314315
break;
315316
}

0 commit comments

Comments
 (0)