Skip to content

Commit

Permalink
style nit: simplify logic
Browse files Browse the repository at this point in the history
  • Loading branch information
msantos committed Aug 27, 2010
1 parent 87a738e commit b410f9b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions c_src/epcap.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,8 @@ epcap_loop(pcap_t *p)

for ( ; ; ) {
pkt = pcap_next(p, &hdr);
if (pkt == NULL)
continue;

epcap_response(pkt, &hdr);
if (pkt)
epcap_response(pkt, &hdr);
}
}

Expand Down

0 comments on commit b410f9b

Please sign in to comment.