mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 17:41:50 +00:00
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>
This commit is contained in:
parent
2203cbf2c8
commit
a8c41a6807
1 changed files with 0 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue