hwmon: (corsair-cpro) Fix fall-through warnings for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 20 Nov 2020 18:36:04 +0000 (12:36 -0600)
committerGustavo A. R. Silva <gustavoars@kernel.org>
Tue, 18 May 2021 00:50:23 +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>
Marius Zachmann <mail@mariuszachmann.de>
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
drivers/hwmon/corsair-cpro.c

index 591929ec217a62e77e6a45bf44018c108700c37c..fa6aa4fc8b5213dacccd954bb137219bf5644854 100644 (file)
@@ -310,6 +310,7 @@ static int ccp_write(struct device *dev, enum hwmon_sensor_types type,
                default:
                        break;
                }
+               break;
        default:
                break;
        }