mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
cleanup: use parsed yes_no_arg
Do not parse yes_no_arg inside tools code and use already available result as uint.
This commit is contained in:
parent
f990b7298d
commit
4d2aa6a7aa
@ -596,7 +596,7 @@ static int lvchange_persistent(struct cmd_context *cmd,
|
||||
int active = 0;
|
||||
int32_t major, minor;
|
||||
|
||||
if (!strcmp(arg_str_value(cmd, persistent_ARG, "n"), "n")) {
|
||||
if (!arg_uint_value(cmd, persistent_ARG, 0)) {
|
||||
if (!(lv->status & FIXED_MINOR)) {
|
||||
log_error("Minor number is already not persistent "
|
||||
"for \"%s\"", lv->name);
|
||||
|
Loading…
Reference in New Issue
Block a user