1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

Remove dead assignment to thisfd

Value of 'thisfd' is not read again after its assigment
This commit is contained in:
Zdenek Kabelac 2011-01-05 12:17:19 +00:00
parent 5d6a6bdf7b
commit 4522d931f6

View 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 */