1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-04-01 18:50:41 +03:00

cov: drop check for pointer

Pointer must be always set and it's been already dereferenced.
This commit is contained in:
Zdenek Kabelac 2018-10-15 14:19:22 +02:00
parent 1bb30a8c27
commit fbfbbf6d6a

View File

@ -2243,7 +2243,7 @@ static int _vg_write_lv_suspend_commit_backup(struct volume_group *vg,
return_0;
}
if (lv && !(r = (origin_only ? suspend_lv_origin(vg->cmd, lock_lv) :
if (!(r = (origin_only ? suspend_lv_origin(vg->cmd, lock_lv) :
suspend_lv(vg->cmd, lock_lv)))) {
log_error("Failed to suspend %s before committing changes.",
display_lvname(lv));