[lvm-devel] master - cleanup: type cleanup
Zdenek Kabelac
zkabelac at fedoraproject.org
Thu Jun 23 23:03:24 UTC 2016
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=1c212371fa6e65c783d7df50eab0108acb7b0cf8
Commit: 1c212371fa6e65c783d7df50eab0108acb7b0cf8
Parent: 7c921f18e236055b2d6b20794be076124489d6ac
Author: Zdenek Kabelac <zkabelac at redhat.com>
AuthorDate: Fri Jun 24 00:35:03 2016 +0200
Committer: Zdenek Kabelac <zkabelac at redhat.com>
CommitterDate: Fri Jun 24 00:39:14 2016 +0200
cleanup: type cleanup
Fix return code 1.
Since we always check for !() - this fix has no other effect.
---
tools/toollib.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tools/toollib.c b/tools/toollib.c
index 77c9f01..5c61ddd 100644
--- a/tools/toollib.c
+++ b/tools/toollib.c
@@ -1655,7 +1655,7 @@ int validate_restricted_lvname_param(struct cmd_context *cmd, const char **vg_na
if (lv_name && *lv_name && !apply_lvname_restrictions(*lv_name))
return_0;
- return -1;
+ return 1;
}
/*
More information about the lvm-devel
mailing list