[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1571308453-213479-1-git-send-email-linyunsheng@huawei.com>
Date: Thu, 17 Oct 2019 18:34:13 +0800
From: Yunsheng Lin <linyunsheng@...wei.com>
To: <davem@...emloft.net>
CC: <tglx@...utronix.de>, <peterz@...radead.org>, <fw@...len.de>,
<bigeasy@...utronix.de>, <pabeni@...hat.com>,
<jonathan.lemon@...il.com>, <anshuman.khandual@....com>,
<netdev@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<linuxarm@...wei.com>
Subject: [PATCH net-next] 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@...wei.com>
---
net/core/pktgen.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/net/core/pktgen.c b/net/core/pktgen.c
index 48b1e42..294bfcf 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;
}
--
2.8.1
Powered by blists - more mailing lists