]> sourceware.org Git - lvm2.git/commitdiff
cleanup: drop unused val
authorZdenek Kabelac <zkabelac@redhat.com>
Tue, 17 Feb 2015 12:39:26 +0000 (13:39 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 17 Feb 2015 12:39:26 +0000 (13:39 +0100)
libdaemon/client/daemon-io.c

index d19acd64192a379fc9389d3c5df1255de93d50e1..5ce9dde8380cfb55a1d6ba16ff0cb70bfcb22872 100644 (file)
@@ -51,10 +51,7 @@ int buffer_read(int fd, struct buffer *buffer) {
                        return 0; /* we should never encounter EOF here */
                } else if (result < 0 && ( errno == EAGAIN || errno == EWOULDBLOCK ||
                                           errno == EINTR || errno == EIO)) {
-                       struct timeval tval;
                        fd_set in;
-                       tval.tv_sec = 1;
-                       tval.tv_usec = 0;
                        FD_ZERO(&in);
                        FD_SET(fd, &in);
                        /* ignore the result, this is just a glorified sleep */
@@ -83,10 +80,7 @@ int buffer_write(int fd, const struct buffer *buffer) {
                                written += result;
                        else if (result < 0 && ( errno == EAGAIN || errno == EWOULDBLOCK ||
                                                 errno == EINTR || errno == EIO)) {
-                               struct timeval tval;
                                fd_set out;
-                               tval.tv_sec = 1;
-                               tval.tv_usec = 0;
                                FD_ZERO(&out);
                                FD_SET(fd, &out);
                                /* ignore the result, this is just a glorified sleep */
This page took 0.049618 seconds and 5 git commands to generate.