diff options
author | Peter Rajnoha <prajnoha@redhat.com> | 2015-07-29 13:10:31 +0200 |
---|---|---|
committer | Peter Rajnoha <prajnoha@redhat.com> | 2015-07-29 13:16:09 +0200 |
commit | ca0d9a70d15ca44c1d0d6f65a277c5e2ac7dd161 (patch) | |
tree | 20c57b2d8ea5e68136e723adb9d3a3b8a71ea024 | |
parent | cf700151eba483aeedbf790fd66ce1c44e19c707 (diff) | |
download | lvm2-ca0d9a70d15ca44c1d0d6f65a277c5e2ac7dd161.tar.gz |
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.
-rw-r--r-- | tools/dmsetup.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/tools/dmsetup.c b/tools/dmsetup.c index e6cc44f5f..7a26db158 100644 --- a/tools/dmsetup.c +++ b/tools/dmsetup.c @@ -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)) |