]> git.itanic.dy.fi Git - linux-stable/commitdiff
pktgen: remove unnecessary assignment in pktgen_xmit()
authorYunsheng Lin <linyunsheng@huawei.com>
Thu, 17 Oct 2019 10:34:13 +0000 (18:34 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Oct 2019 18:25:13 +0000 (14:25 -0400)
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>
net/core/pktgen.c

index 48b1e429857c54acd669f5cd6798b1dcf89a1f82..294bfcf0ce0eb9a2aba61751a4c517ba11db9a89 100644 (file)
@@ -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;
        }