master - cleanup: clvmd drop goto
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=4c97ea2ce55134735896967e719db955c9e74161 Commit: 4c97ea2ce55134735896967e719db955c9e74161 Parent: 7d49c33ffc41d58bd17ab032df23ca1a08f017b9 Author: Zdenek Kabelac <[email protected]> AuthorDate: Thu Mar 20 09:18:10 2014 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Fri Mar 21 22:29:25 2014 +0100
cleanup: clvmd drop goto
--- daemons/clvmd/clvmd.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-)
daemons/clvmd/clvmd.c +1 -3
@@ -1167,7 +1167,7 @@ static int cleanup_zombie(struct local_client *thisfd)if (thisfd->bits.localsock.in_progress) {pthread_kill (thisfd->bits.localsock.threadid,SIGUSR2 );if (pthread_mutex_trylock (&thisfd->bits.localsock.mutex)) - goto bail; +return 1 ; thisfd->bits.localsock.state =POST_COMMAND ;pthread_cond_signal (&thisfd->bits.localsock.cond);pthread_mutex_unlock (&thisfd->bits.localsock.mutex);
@@ -1228,8 +1228,6 @@ static int cleanup_zombie(struct local_client *thisfd)safe_close (&(thisfd->fd)); thisfd->bits.localsock.cleanup_needed =0 ;return 0 ; -bail: -return 1 ; }/* Called when we have a read from the local socket.