1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

cov: use proper enum value

This commit is contained in:
Zdenek Kabelac 2024-03-25 17:17:24 +01:00
parent 421afd287a
commit c4b1bfa5f0

View File

@ -178,11 +178,11 @@ static int _lvresize_params(struct cmd_context *cmd, struct lvresize_params *lp)
if (set_extents_and_size) { if (set_extents_and_size) {
if ((lp->extents = arg_uint_value(cmd, extents_ARG, 0))) { if ((lp->extents = arg_uint_value(cmd, extents_ARG, 0))) {
lp->sign = arg_sign_value(cmd, extents_ARG, 0); lp->sign = arg_sign_value(cmd, extents_ARG, SIGN_NONE);
lp->percent = arg_percent_value(cmd, extents_ARG, PERCENT_NONE); lp->percent = arg_percent_value(cmd, extents_ARG, PERCENT_NONE);
} }
if ((lp->size = arg_uint64_value(cmd, size_ARG, 0))) { if ((lp->size = arg_uint64_value(cmd, size_ARG, 0))) {
lp->sign = arg_sign_value(cmd, size_ARG, 0); lp->sign = arg_sign_value(cmd, size_ARG, SIGN_NONE);
lp->percent = PERCENT_NONE; lp->percent = PERCENT_NONE;
} }
if (lp->size && lp->extents) { if (lp->size && lp->extents) {