1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +03:00

Remove unnecesary conditional.

The conditional is not just unnecessary, it would have been wrong.  The code
is suppose to be checking if the 'splitmirrors_ARG' is negative, but it
instead is checking 'mirrors_ARG'.  Rather than changing the argument being
checked, I've pulled the check entirely because 'splitmirrors_ARG' is already
guarenteed to not be negative by virtue of the fact that it is a 'int_arg'.
Negative values will be caught in _process_command_line().
This commit is contained in:
Jonathan Earl Brassow 2011-06-28 21:28:35 +00:00
parent 88fca3eff4
commit 48c9c491b0

View File

@ -169,11 +169,6 @@ static int _read_params(struct lvconvert_params *lp, struct cmd_context *cmd,
return_0;
lp->keep_mimages = 1;
if (arg_sign_value(cmd, mirrors_ARG, 0) == SIGN_MINUS) {
log_error("Argument to --splitmirrors"
" cannot be negative");
return 0;
}
lp->mirrors = arg_uint_value(cmd, splitmirrors_ARG, 0);
lp->mirrors_sign = SIGN_MINUS;
} else if (arg_count(cmd, name_ARG)) {