Skip to contentSkip to conversation

master - cleanup: lvconvert drop unused variable

PATCH Zdenek Kabelac 1 participant 1 message Oct 11, 2016

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=6f576483a87aac67037e25914990a77e76c81423
Commit:        6f576483a87aac67037e25914990a77e76c81423
Parent:        c8b6c130158e1cc1a639afc21f5fd6306286fdb3
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Tue Oct 11 11:52:07 2016 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Tue Oct 11 13:37:43 2016 +0200

cleanup: lvconvert drop unused variable

---
 tools/lvconvert.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
tools/lvconvert.c +1 -4
index 161062d..78cd7de 100644
@@ -50,8 +50,6 @@ struct lvconvert_params {
 	int splitsnapshot;
 	int thin;
 	int uncache;
-	int other_conversion;	/* Everything else */
-
 	int corelog;		/* Equivalent to --mirrorlog core */
 	int mirrorlog;		/* Only one of corelog and mirrorlog may be set */
 
@@ -644,8 +642,7 @@ static int _read_params(struct cmd_context *cmd, int argc, char **argv,
 	    lp->cache + lp->thin + lp->keep_mimages + lp->snapshot + lp->replace + lp->repair > 1) {
 		log_error(INTERNAL_ERROR "Unexpected combination of incompatible options selected.");
 		return 0;
-	} else
-		lp->other_conversion = 1;
+	}
 
 	/*
 	 * Final checking of each case: