Skip to content

Commit f2d887c

Browse files
GustavoARSilvaclaudiubeznea
authored andcommitted
net: macb: Mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 7a60481 commit f2d887c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/net/ethernet/cadence/macb_ptp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,7 @@ int gem_set_hwtst(struct net_device *dev, struct ifreq *ifr, int cmd)
466466
case HWTSTAMP_TX_ONESTEP_SYNC:
467467
if (gem_ptp_set_one_step_sync(bp, 1) != 0)
468468
return -ERANGE;
469+
/* fall through */
469470
case HWTSTAMP_TX_ON:
470471
tx_bd_control = TSTAMP_ALL_FRAMES;
471472
break;

0 commit comments

Comments
 (0)