]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Remove used var
authorRoy Marples <roy@marples.name>
Fri, 31 Jan 2014 15:00:58 +0000 (15:00 +0000)
committerRoy Marples <roy@marples.name>
Fri, 31 Jan 2014 15:00:58 +0000 (15:00 +0000)
dhcp.c

diff --git a/dhcp.c b/dhcp.c
index 29c57a0ff78086bfc37c734fe782bcca808b69a0..6ea91525af23c06130f5038c808b2fbabc8f5da1 100644 (file)
--- a/dhcp.c
+++ b/dhcp.c
@@ -2511,14 +2511,13 @@ dhcp_handleudp(void *arg)
 {
        const struct interface *ifp;
        const struct dhcp_state *state;
-       ssize_t bytes;
        uint8_t buffer[sizeof(struct dhcp_message)];
 
        ifp = arg;
        state = D_CSTATE(ifp);
        /* Just read what's in the UDP fd and discard it as we always read
         * from the raw fd */
-       bytes = read(state->udp_fd, buffer, sizeof(buffer));
+       read(state->udp_fd, buffer, sizeof(buffer));
 }
 
 static int