From: Roy Marples Date: Sat, 3 May 2014 00:11:15 +0000 (+0000) Subject: Minor optimisation X-Git-Tag: v6.4.0~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c33041b0502a9432a9ff8d7a4145b0730a0cf765;p=thirdparty%2Fdhcpcd.git Minor optimisation --- diff --git a/if-linux.c b/if-linux.c index c04c0760..553669ab 100644 --- a/if-linux.c +++ b/if-linux.c @@ -853,8 +853,8 @@ if_readrawpacket(struct interface *ifp, int protocol, bytes = recvmsg(fd, &msg, 0); if (bytes == -1) return -1; + *flags = RAW_EOF; /* We only ever read one packet */ if (bytes) { - *flags &= ~RAW_PARTIALCSUM; #ifdef PACKET_AUXDATA for (cmsg = CMSG_FIRSTHDR(&msg); cmsg; @@ -869,7 +869,6 @@ if_readrawpacket(struct interface *ifp, int protocol, } #endif } - *flags |= RAW_EOF; return bytes; }