[lvm-devel] master - dmsetup: no need to check for "help" field name after report init

Peter Rajnoha prajnoha at fedoraproject.org
Thu Jun 19 16:23:06 UTC 2014


Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=59ed4d3bf6b1aaf7c3db837251c60ff9004f0879
Commit:        59ed4d3bf6b1aaf7c3db837251c60ff9004f0879
Parent:        c6d82c992b4a4271287233dbedc3a075fa03ca43
Author:        Peter Rajnoha <prajnoha at redhat.com>
AuthorDate:    Thu Jun 19 18:20:30 2014 +0200
Committer:     Peter Rajnoha <prajnoha at redhat.com>
CommitterDate: Thu Jun 19 18:22:51 2014 +0200

dmsetup: no need to check for "help" field name after report init

The "help" field (as well as "?") is implicit now - libdevmapper
takes care of it completely.
---
 tools/dmsetup.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/tools/dmsetup.c b/tools/dmsetup.c
index 454141e..c679c52 100644
--- a/tools/dmsetup.c
+++ b/tools/dmsetup.c
@@ -2948,9 +2948,6 @@ static int _report_init(const struct command *cmd)
 	r = 1;
 
 out:
-	if (!strcasecmp(options, "help") || !strcmp(options, "?"))
-		r = 1;
-
 	if (len)
 		dm_free(options);
 




More information about the lvm-devel mailing list