rtc: m41t80: mark expected switch fall-through
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Thu, 4 Oct 2018 13:07:01 +0000 (15:07 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 16 Oct 2018 10:56:58 +0000 (12:56 +0200)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Notice that in this particular case, I replaced "Fall" with a proper
"Fall through" comment.

Addresses-Coverity-ID: 1373875 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-m41t80.c

index ad03e2f12f5d3abacb16174e9dbffc2ad34d8fc4..a3fb235fea0d12ebad51f75c3cb50e7997d3ae18 100644 (file)
@@ -745,7 +745,7 @@ static int wdt_ioctl(struct file *file, unsigned int cmd,
                        return -EINVAL;
                wdt_margin = new_margin;
                wdt_ping();
-               /* Fall */
+               /* Fall through */
        case WDIOC_GETTIMEOUT:
                return put_user(wdt_margin, (int __user *)arg);