pktgen: Fix fall-through annotation
Subsystems (2)
PATCH 1/1 pktgen: Fix fall-through annotation
Replace "fallthru" with a proper "fall through" annotation.
This fix is part of the ongoing efforts to enabling -Wimplicit-fallthrough
Signed-off-by Gustavo A. R. Silva <[email protected]>
--- net/core/pktgen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/core/pktgen.c +1 -1
@@ -3426,7 +3426,7 @@ static void pktgen_xmit(struct pktgen_dev *pkt_dev)net_info_ratelimited ("%s xmit error: %d\n" , pkt_dev->odevname, ret); pkt_dev->errors++; -/* fallthru */ +/* fall through */ case NETDEV_TX_BUSY :/* Retry it next time */ refcount_dec (&(pkt_dev->skb->users));
Signature · 1 line
2.7.4
From: "Gustavo A. R. Silva" <[email protected]>
Date: Thu, 13 Sep 2018 14:03:20 -0500
Quoted 6 lines
Replace "fallthru" with a proper "fall through" annotation.
This fix is part of the ongoing efforts to enabling -Wimplicit-fallthrough
Signed-off-by Gustavo A. R. Silva <[email protected]>
Applied.