Skip to content

Commit 848e28b

Browse files
GustavoARSilvagregkh
authored andcommitted
staging: comedi: s526: Use fallthrough pseudo-keyword
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. [1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Gustavo A. R. Silva <[email protected]> Link: https://lore.kernel.org/r/20200727184247.GA29207@embeddedor Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 8dda212 commit 848e28b

File tree

1 file changed

+1
-1
lines changed
  • drivers/staging/comedi/drivers

1 file changed

+1
-1
lines changed

drivers/staging/comedi/drivers/s526.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ static int s526_gpct_winsn(struct comedi_device *dev,
400400
if ((data[1] <= data[0]) || !data[0])
401401
return -EINVAL;
402402
/* to write the PULSE_WIDTH */
403-
/* fall through */
403+
fallthrough;
404404
case INSN_CONFIG_GPCT_QUADRATURE_ENCODER:
405405
case INSN_CONFIG_GPCT_SINGLE_PULSE_GENERATOR:
406406
s526_gpct_write(dev, chan, data[0]);

0 commit comments

Comments
 (0)