mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
man: refactor check for variant
Remove unnecessary checks and move the comment to the 1st. check.
This commit is contained in:
parent
c4d4bddfce
commit
ebadd3ccc6
@ -791,6 +791,7 @@ static void _print_man_usage_common_cmd(struct command *cmd)
|
||||
int i, sep, oo, opt_enum;
|
||||
int found_common_command = 0;
|
||||
|
||||
/* common cmd options only used with variants */
|
||||
if (cna->variants < 2)
|
||||
return;
|
||||
|
||||
@ -824,10 +825,6 @@ static void _print_man_usage_common_cmd(struct command *cmd)
|
||||
if (!opt_names[opt_enum].short_opt)
|
||||
continue;
|
||||
|
||||
/* common cmd options only used with variants */
|
||||
if (cna->variants < 2)
|
||||
continue;
|
||||
|
||||
if (_is_lvm_all_opt(opt_enum))
|
||||
continue;
|
||||
|
||||
@ -861,10 +858,6 @@ static void _print_man_usage_common_cmd(struct command *cmd)
|
||||
if (opt_names[opt_enum].short_opt)
|
||||
continue;
|
||||
|
||||
/* common cmd options only used with variants */
|
||||
if (cna->variants < 2)
|
||||
continue;
|
||||
|
||||
if (_is_lvm_all_opt(opt_enum))
|
||||
continue;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user