mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
cleanup: make report type condition consistent with the rest of the code
It's just more readable this way (each condition resulting in a certain report type is always on one line), just like it's used elsewhere in the code.
This commit is contained in:
parent
455ef6f2f5
commit
2a19866a74
@ -543,9 +543,8 @@ static int _report(struct cmd_context *cmd, int argc, char **argv,
|
||||
if ((report_type & PVSEGS) ||
|
||||
((report_type & (PVS | LABEL)) && (report_type & (LVS | LVSINFO | LVSSTATUS | LVSINFOSTATUS))))
|
||||
report_type = PVSEGS;
|
||||
else if ((report_type & LABEL) && (report_type & VGS))
|
||||
report_type = PVS;
|
||||
else if (report_type & PVS)
|
||||
else if ((report_type & PVS) ||
|
||||
((report_type & LABEL) && (report_type & VGS)))
|
||||
report_type = PVS;
|
||||
else if (report_type & (SEGS | SEGSSTATUS))
|
||||
report_type = SEGS;
|
||||
|
Loading…
x
Reference in New Issue
Block a user