projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2203cbf
)
pktgen: remove unnecessary assignment in pktgen_xmit()
author
Yunsheng Lin
<linyunsheng@huawei.com>
Thu, 17 Oct 2019 10:34:13 +0000
(18:34 +0800)
committer
David 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
patch
|
blob
|
history
diff --git
a/net/core/pktgen.c
b/net/core/pktgen.c
index 48b1e429857c54acd669f5cd6798b1dcf89a1f82..294bfcf0ce0eb9a2aba61751a4c517ba11db9a89 100644
(file)
--- 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;
}