diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-08-07 18:11:26 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-08-07 17:54:19 -0700 |
commit | b4bc39a3f666c3e93590aefbc00d94b95f80567f (patch) | |
tree | 9e22e28d12e2b46f2e945424cc8d4b7844ad4c22 | |
parent | bc171e87a7e29a41b119fdfccd378f7179b39c23 (diff) |
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>
-rw-r--r-- | drivers/net/ethernet/cadence/macb_ptp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/cadence/macb_ptp.c b/drivers/net/ethernet/cadence/macb_ptp.c index 678835136bf8..cd5296b84229 100644 --- a/drivers/net/ethernet/cadence/macb_ptp.c +++ b/drivers/net/ethernet/cadence/macb_ptp.c @@ -466,6 +466,7 @@ int gem_set_hwtst(struct net_device *dev, struct ifreq *ifr, int cmd) case HWTSTAMP_TX_ONESTEP_SYNC: if (gem_ptp_set_one_step_sync(bp, 1) != 0) return -ERANGE; + /* fall through */ case HWTSTAMP_TX_ON: tx_bd_control = TSTAMP_ALL_FRAMES; break; |