From: Mike Snitzer Date: Fri, 23 Apr 2010 19:10:20 +0000 (+0000) Subject: Remove redundant check in _lvs_single now that the caller X-Git-Tag: old-v2_02_64~23 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=b004ea2d7ff0737f7477772fea8ffd4136b7a567;p=lvm2.git Remove redundant check in _lvs_single now that the caller (process_each_lv_in_vg) provides it. Also, removing this check from _lvs_single now allows displaying hidden LVs that are specifically named on the command line. --- diff --git a/tools/reporter.c b/tools/reporter.c index bd3c1169e..1332cc397 100644 --- a/tools/reporter.c +++ b/tools/reporter.c @@ -33,9 +33,6 @@ static int _vgs_single(struct cmd_context *cmd __attribute((unused)), static int _lvs_single(struct cmd_context *cmd, struct logical_volume *lv, void *handle) { - if (!arg_count(cmd, all_ARG) && !lv_is_visible(lv)) - return ECMD_PROCESSED; - if (!report_object(handle, lv->vg, lv, NULL, NULL, NULL)) { stack; return ECMD_FAILED;