Permalink
Browse files

style nit: simplify logic

  • Loading branch information...
1 parent 87a738e commit b410f9b13e3f972f4bff0480dea8b9d701cf9e2c @msantos committed Aug 27, 2010
Showing with 2 additions and 4 deletions.
  1. +2 −4 c_src/epcap.c
View
@@ -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);
}
}

0 comments on commit b410f9b

Please sign in to comment.