1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

command: return if already factored

We can directly return here, when we spot already counted varitants.
This commit is contained in:
Zdenek Kabelac 2024-05-12 10:17:11 +02:00
parent abe1b49b47
commit f854e3a722

View File

@ -1184,13 +1184,12 @@ void factor_common_options(void)
struct command *cmd;
for (cn = 0; cn < LVM_COMMAND_COUNT; ++cn) {
/* already factored */
if (command_names_args[cn].variants)
continue;
return; /* already factored */
for (ci = 0; ci < COMMAND_COUNT; ci++) {
cmd = &commands[ci];
if (strcmp(cmd->name, command_names[cn].name))
continue;