Skip to content
This repository
Browse code

style nit: simplify logic

  • Loading branch information...
commit b410f9b13e3f972f4bff0480dea8b9d701cf9e2c 1 parent 87a738e
Michael Santos authored August 27, 2010

Showing 1 changed file with 2 additions and 4 deletions. Show diff stats Hide diff stats

  1. 6  c_src/epcap.c
6  c_src/epcap.c
@@ -195,10 +195,8 @@ epcap_loop(pcap_t *p)
195 195
 
196 196
     for ( ; ; ) {
197 197
         pkt = pcap_next(p, &hdr);
198  
-        if (pkt == NULL)
199  
-            continue;
200  
-
201  
-        epcap_response(pkt, &hdr);
  198
+        if (pkt)
  199
+            epcap_response(pkt, &hdr);
202 200
     }
203 201
 }
204 202
 

0 notes on commit b410f9b

Please sign in to comment.
Something went wrong with that request. Please try again.