Skip to contentSkip to conversation

master - lvcreate: fix return value

PATCH Zdenek Kabelac 1 participant 1 message Aug 12, 2015

lore
Share & tools
lore
#0 lore raw
Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=2cf3336130b01dc40e89bdd83fceabf057b4a03c
Commit:        2cf3336130b01dc40e89bdd83fceabf057b4a03c
Parent:        a8b9e2eccdfccd63bc8816cea66f157b0257e351
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Wed Aug 12 14:53:00 2015 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Wed Aug 12 19:46:43 2015 +0200

lvcreate: fix return value

Return correct 0 instead of NULL.

---
 tools/lvcreate.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
tools/lvcreate.c +1 -1
index cc4ef20..2a94f3b 100644
@@ -574,7 +574,7 @@ static int _read_cache_params(struct cmd_context *cmd,
 			      &lp->cache_mode,
 			      &lp->policy_name,
 			      &lp->policy_settings))
-		return_NULL;
+		return_0;
 
 	return 1;
 }