]> sourceware.org Git - lvm2.git/commitdiff
Remove dead assignment to thisfd
authorZdenek Kabelac <zkabelac@redhat.com>
Wed, 5 Jan 2011 12:17:19 +0000 (12:17 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Wed, 5 Jan 2011 12:17:19 +0000 (12:17 +0000)
Value of 'thisfd' is not read again after its assigment

daemons/clvmd/clvmd.c

index 327a1fb5b5a9b27f06a2a34cde31860af00ef2c9..fb1b4618ed1bf2547b71f1382bc36bdc9e376241 100644 (file)
@@ -830,7 +830,6 @@ static void main_loop(int local_sock, int cmd_timeout)
                                        struct local_client *free_fd;
                                        lastfd->next = thisfd->next;
                                        free_fd = thisfd;
-                                       thisfd = lastfd;
 
                                        DEBUGLOG("removeme set for fd %d\n", free_fd->fd);
 
@@ -866,7 +865,6 @@ static void main_loop(int local_sock, int cmd_timeout)
                                                         ret, errno);
                                                lastfd->next = thisfd->next;
                                                free_fd = thisfd;
-                                               thisfd = lastfd;
                                                safe_close(&(free_fd->fd));
 
                                                /* Queue cleanup, this also frees the client struct */
This page took 0.039465 seconds and 5 git commands to generate.