Skip to content

Commit

Permalink
trafgen: remove write-only variable pkt
Browse files Browse the repository at this point in the history
Signed-off-by: Tobias Klauser <[email protected]>
  • Loading branch information
tklauser committed Jun 19, 2020
1 parent d8cb869 commit 6c52fa8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions trafgen.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */;
}

Expand Down

0 comments on commit 6c52fa8

Please sign in to comment.