All of lore.kernel.org
 help / color / mirror / Atom feed
* master - cleanup: type cleanup
@ 2016-06-23 23:03 Zdenek Kabelac
  0 siblings, 0 replies; only message in thread
From: Zdenek Kabelac @ 2016-06-23 23:03 UTC (permalink / raw)
  To: lvm-devel

Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=1c212371fa6e65c783d7df50eab0108acb7b0cf8
Commit:        1c212371fa6e65c783d7df50eab0108acb7b0cf8
Parent:        7c921f18e236055b2d6b20794be076124489d6ac
Author:        Zdenek Kabelac <zkabelac@redhat.com>
AuthorDate:    Fri Jun 24 00:35:03 2016 +0200
Committer:     Zdenek Kabelac <zkabelac@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;
 }
 
 /*



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-06-23 23:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-23 23:03 master - cleanup: type cleanup Zdenek Kabelac

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.