aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorYunsheng Lin <linyunsheng@huawei.com>2019-10-17 18:34:13 +0800
committerDavid S. Miller <davem@davemloft.net>2019-10-17 14:25:13 -0400
commita8c41a68076e88d24fd7c0ac39de93654a298594 (patch)
tree7d40de45403dee94f7fbacaeb5889b7cb423473a /net
parentnet: sfp: move fwnode parsing into sfp-bus layer (diff)
downloadlinux-dev-a8c41a68076e88d24fd7c0ac39de93654a298594.tar.xz
linux-dev-a8c41a68076e88d24fd7c0ac39de93654a298594.zip
pktgen: remove unnecessary assignment in pktgen_xmit()
variable ret is not used after jumping to "unlock" label, so the assignment is redundant. Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/core/pktgen.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/core/pktgen.c b/net/core/pktgen.c
index 48b1e429857c..294bfcf0ce0e 100644
--- a/net/core/pktgen.c
+++ b/net/core/pktgen.c
@@ -3404,7 +3404,6 @@ static void pktgen_xmit(struct pktgen_dev *pkt_dev)
HARD_TX_LOCK(odev, txq, smp_processor_id());
if (unlikely(netif_xmit_frozen_or_drv_stopped(txq))) {
- ret = NETDEV_TX_BUSY;
pkt_dev->last_ok = 0;
goto unlock;
}