diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2016-06-24 00:35:03 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2016-06-24 00:39:14 +0200 |
commit | 1c212371fa6e65c783d7df50eab0108acb7b0cf8 (patch) | |
tree | 2b79a889a9b5923b36fbd5ae0912195e50ec61a0 | |
parent | 7c921f18e236055b2d6b20794be076124489d6ac (diff) | |
download | lvm2-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.c | 2 |
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; } /* |