mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
cleanup: gcc warn fix
Since gcc fail to see the origin has been already set under condition above, just set origin again.
This commit is contained in:
parent
8af2309231
commit
c894c3c87f
@ -1000,6 +1000,7 @@ static int _lvchange_single(struct cmd_context *cmd, struct logical_volume *lv,
|
||||
}
|
||||
|
||||
if (lv_is_cow(lv) && arg_count(cmd, activate_ARG)) {
|
||||
origin = origin_from_cow(lv);
|
||||
if (origin->origin_count < 2)
|
||||
snaps_msg[0] = '\0';
|
||||
else if (dm_snprintf(snaps_msg, sizeof(snaps_msg),
|
||||
|
Loading…
Reference in New Issue
Block a user