mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cleanup: join if/else
This commit is contained in:
parent
3e09f916b4
commit
cc53a23d82
@ -4867,10 +4867,7 @@ static int _lvresize_adjust_extents(struct cmd_context *cmd, struct logical_volu
|
||||
if (!lp->ac_mirrors && seg_mirrors) {
|
||||
log_print_unless_silent("Extending %" PRIu32 " mirror images.", seg_mirrors);
|
||||
lp->mirrors = seg_mirrors;
|
||||
}
|
||||
|
||||
if ((lp->ac_mirrors || seg_mirrors) &&
|
||||
(lp->mirrors != seg_mirrors)) {
|
||||
} else if ((lp->ac_mirrors || seg_mirrors) && (lp->mirrors != seg_mirrors)) {
|
||||
log_error("Cannot vary number of mirrors in LV yet.");
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user