1
0
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:
Zdenek Kabelac 2016-01-21 10:16:16 +01:00
parent 3e09f916b4
commit cc53a23d82

View File

@ -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;
}