diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2020-06-19 15:00:30 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2020-06-19 15:00:30 +0200 |
commit | 6c52fa8069925ae6ea6d7b4e66d848073ac2aef8 (patch) | |
tree | d08e808de43408adcca4af1bb2973f8299057987 /trafgen.c | |
parent | d8cb8692174a3f963185c93420662d8207668f78 (diff) |
trafgen: remove write-only variable pkt
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'trafgen.c')
-rw-r--r-- | trafgen.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 */; } |