Skip to contentSkip to conversation

master - clvmd: drop dead code

PATCH Zdenek Kabelac 1 participant 1 message Mar 21, 2014

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=7041c8bf51844c314fd4ed3b5f20779959524320
Commit:        7041c8bf51844c314fd4ed3b5f20779959524320
Parent:        73978f8d7dd638806f514a7914884a204afd95c1
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Fri Mar 21 16:50:45 2014 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Fri Mar 21 22:29:24 2014 +0100

clvmd: drop dead code

Since pipe_client has been already reset to NULL,
remove this dead code.

---
 daemons/clvmd/clvmd.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
daemons/clvmd/clvmd.c +0 -5
index 572c5b7..dd3548f 100644
@@ -1223,11 +1223,6 @@ static int cleanup_zombie(struct local_client *thisfd)
 	/* Free the command buffer */
 	dm_free(thisfd->bits.localsock.cmd);
 
-	/* Clear out the cross-link */
-	if (thisfd->bits.localsock.pipe_client != NULL)
-		thisfd->bits.localsock.pipe_client->bits.pipe.client =
-		    NULL;
-
 	safe_close(&(thisfd->fd));
 	thisfd->bits.localsock.cleanup_needed = 0;
 	return 0;