]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Remove un-used variable.
authorRoy Marples <roy@marples.name>
Wed, 22 Jul 2015 12:25:54 +0000 (12:25 +0000)
committerRoy Marples <roy@marples.name>
Wed, 22 Jul 2015 12:25:54 +0000 (12:25 +0000)
if-linux.c

index 3f5a9f0855b50490624cb2f716a604052979a828..89b709999013e98861359183d4195107cf731d1a 100644 (file)
@@ -1230,7 +1230,6 @@ if_readrawpacket(struct interface *ifp, uint16_t protocol,
                .msg_iov = &iov,
                .msg_iovlen = 1,
        };
-       struct dhcp_state *state;
 #ifdef PACKET_AUXDATA
        unsigned char cmsgbuf[CMSG_LEN(sizeof(struct tpacket_auxdata))];
        struct cmsghdr *cmsg;
@@ -1245,7 +1244,6 @@ if_readrawpacket(struct interface *ifp, uint16_t protocol,
        msg.msg_controllen = sizeof(cmsgbuf);
 #endif
 
-       state = D_STATE(ifp);
        fd = ipv4_protocol_fd(ifp, protocol);
        bytes = recvmsg(fd, &msg, 0);
        if (bytes == -1)