summaryrefslogtreecommitdiff
path: root/tools/bpf/bpf_dbg.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/bpf/bpf_dbg.c')
-rw-r--r--tools/bpf/bpf_dbg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/bpf/bpf_dbg.c b/tools/bpf/bpf_dbg.c
index a07dfc479270..00e560a17baf 100644
--- a/tools/bpf/bpf_dbg.c
+++ b/tools/bpf/bpf_dbg.c
@@ -1198,7 +1198,7 @@ static int cmd_run(char *num)
else
return CMD_OK;
bpf_reset();
- } while (pcap_next_pkt() && (!has_limit || (has_limit && ++i < pkts)));
+ } while (pcap_next_pkt() && (!has_limit || (++i < pkts)));
rl_printf("bpf passes:%u fails:%u\n", pass, fail);