summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2016-06-24 00:35:03 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2016-06-24 00:39:14 +0200
commit1c212371fa6e65c783d7df50eab0108acb7b0cf8 (patch)
tree2b79a889a9b5923b36fbd5ae0912195e50ec61a0
parent7c921f18e236055b2d6b20794be076124489d6ac (diff)
downloadlvm2-1c212371fa6e65c783d7df50eab0108acb7b0cf8.tar.gz
cleanup: type cleanup
Fix return code 1. Since we always check for !() - this fix has no other effect.
-rw-r--r--tools/toollib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/toollib.c b/tools/toollib.c
index 77c9f011b..5c61ddde9 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;
}
/*