From: Zdenek Kabelac Date: Wed, 5 Jan 2011 12:17:19 +0000 (+0000) Subject: Remove dead assignment to thisfd X-Git-Tag: v2_02_91~1229 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=4522d931f6dcfc5666d43ca889c54e9fc658244a;p=lvm2.git Remove dead assignment to thisfd Value of 'thisfd' is not read again after its assigment --- diff --git a/daemons/clvmd/clvmd.c b/daemons/clvmd/clvmd.c index 327a1fb5b..fb1b4618e 100644 --- a/daemons/clvmd/clvmd.c +++ b/daemons/clvmd/clvmd.c @@ -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 */