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:
parent
5d6a6bdf7b
commit
4522d931f6
@ -830,7 +830,6 @@ static void main_loop(int local_sock, int cmd_timeout)
|
|||||||
struct local_client *free_fd;
|
struct local_client *free_fd;
|
||||||
lastfd->next = thisfd->next;
|
lastfd->next = thisfd->next;
|
||||||
free_fd = thisfd;
|
free_fd = thisfd;
|
||||||
thisfd = lastfd;
|
|
||||||
|
|
||||||
DEBUGLOG("removeme set for fd %d\n", free_fd->fd);
|
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);
|
ret, errno);
|
||||||
lastfd->next = thisfd->next;
|
lastfd->next = thisfd->next;
|
||||||
free_fd = thisfd;
|
free_fd = thisfd;
|
||||||
thisfd = lastfd;
|
|
||||||
safe_close(&(free_fd->fd));
|
safe_close(&(free_fd->fd));
|
||||||
|
|
||||||
/* Queue cleanup, this also frees the client struct */
|
/* Queue cleanup, this also frees the client struct */
|
||||||
|
Loading…
Reference in New Issue
Block a user