staging: comedi: s526: mark expected switch fall-through
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Thu, 12 Oct 2017 16:16:37 +0000 (11:16 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Oct 2017 13:45:48 +0000 (15:45 +0200)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/s526.c

index c80527d..e226275 100644 (file)
@@ -408,9 +408,8 @@ static int s526_gpct_winsn(struct comedi_device *dev,
                 */
                if ((data[1] <= data[0]) || !data[0])
                        return -EINVAL;
-
-               /* Fall thru to write the PULSE_WIDTH */
-
+               /* to write the PULSE_WIDTH */
+               /* fall through */
        case INSN_CONFIG_GPCT_QUADRATURE_ENCODER:
        case INSN_CONFIG_GPCT_SINGLE_PULSE_GENERATOR:
                s526_gpct_write(dev, chan, data[0]);