浏览代码

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 <gustavo@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Gustavo A. R. Silva 7 年之前
父节点
当前提交
f91845da9f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      net/core/pktgen.c

+ 1 - 1
net/core/pktgen.c

@@ -3426,7 +3426,7 @@ xmit_more:
 		net_info_ratelimited("%s xmit error: %d\n",
 		net_info_ratelimited("%s xmit error: %d\n",
 				     pkt_dev->odevname, ret);
 				     pkt_dev->odevname, ret);
 		pkt_dev->errors++;
 		pkt_dev->errors++;
-		/* fallthru */
+		/* fall through */
 	case NETDEV_TX_BUSY:
 	case NETDEV_TX_BUSY:
 		/* Retry it next time */
 		/* Retry it next time */
 		refcount_dec(&(pkt_dev->skb->users));
 		refcount_dec(&(pkt_dev->skb->users));