summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 */;
}