can: peak_canfd: mark expected switch fall-through
Subsystems (3)
PATCH 1/1 can: peak_canfd: mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
Notice that, in this particular case, a spelling mistake is fixed.
Warning level 3 was used: -Wimplicit-fallthrough=3
This patch is part of the ongoing efforts to enabling -Wimplicit-fallthrough.
Signed-off-by Gustavo A. R. Silva <[email protected]>
--- drivers/net/can/peak_canfd/peak_pciefd_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/can/peak_canfd/peak_pciefd_main.c +1 -1
@@ -668,7 +668,7 @@ static int pciefd_can_probe(struct pciefd_board *pciefd)pciefd_can_writereg (priv,CANFD_CLK_SEL_80MHZ ,PCIEFD_REG_CAN_CLK_SEL ); -/* fallthough */ +/* fall through */ case CANFD_CLK_SEL_80MHZ : priv->ucan.can.clock.freq =80 *1000 *1000 ;break ;
Signature · 1 line
2.20.1