master - dmsetup: remove dead code that covered "info -c -o help" case once
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=ca0d9a70d15ca44c1d0d6f65a277c5e2ac7dd161 Commit: ca0d9a70d15ca44c1d0d6f65a277c5e2ac7dd161 Parent: cf700151eba483aeedbf790fd66ce1c44e19c707 Author: Peter Rajnoha <[email protected]> AuthorDate: Wed Jul 29 13:10:31 2015 +0200 Committer: Peter Rajnoha <[email protected]> CommitterDate: Wed Jul 29 13:16:09 2015 +0200
dmsetup: remove dead code that covered "info -c -o help" case once
The "-o help" is now handled as implicit field and it gets processed just like any other field - all handled by libdevmapper now.
--- tools/dmsetup.c | 11 ++--------- 1 files changed, 2 insertions(+), 9 deletions(-)
tools/dmsetup.c +2 -9
@@ -3857,15 +3857,8 @@ unknown: goto out; } -if (_switches[COLS_ARG ]) { -if (!_report_init (cmd)) - goto out; -if (!_report) { -if (!strcmp (cmd->name,"info" )) - r =0 ;/* info -c -o help */ - goto out; - } - } +if (_switches[COLS_ARG ] && !_report_init (cmd)) + goto out;#ifdef UDEV_SYNC_SUPPORT if (!_set_up_udev_support (dev_dir))