summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2020-06-19 15:00:30 +0200
committerTobias Klauser <tklauser@distanz.ch>2020-06-19 15:00:30 +0200
commit6c52fa8069925ae6ea6d7b4e66d848073ac2aef8 (patch)
treed08e808de43408adcca4af1bb2973f8299057987
parentd8cb8692174a3f963185c93420662d8207668f78 (diff)
trafgen: remove write-only variable pkt
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r--trafgen.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/trafgen.c b/trafgen.c
index 78be711..1fdf0ec 100644
--- a/trafgen.c
+++ b/trafgen.c
@@ -928,9 +928,7 @@ static void xmit_packet_precheck(struct ctx *ctx, unsigned int cpu)
static void pcap_load_packets(struct dev_io *dev)
{
- struct packet *pkt;
-
- while ((pkt = dev_io_read(dev)) != 0)
+ while (dev_io_read(dev))
/* nothing to do */;
}