projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc171e8
)
net: macb: Mark expected switch fall-through
author
Gustavo A. R. Silva
<
[email protected]
>
Tue, 7 Aug 2018 23:11:26 +0000
(18:11 -0500)
committer
David S. Miller
<
[email protected]
>
Wed, 8 Aug 2018 00:54:19 +0000
(17:54 -0700)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Signed-off-by: Gustavo A. R. Silva <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/cadence/macb_ptp.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/cadence/macb_ptp.c
b/drivers/net/ethernet/cadence/macb_ptp.c
index 678835136bf8069326067feaa46f8465db4e38d4..cd5296b842290302a5904b4c590e51fdea741bbd 100644
(file)
--- 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;