mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
cache: lv_cache_create returns LV ptr, so return NULL not 0 on error
This commit is contained in:
parent
d68e5d5ab9
commit
48aef76ec5
@ -129,7 +129,7 @@ struct logical_volume *lv_cache_create(struct logical_volume *pool,
|
|||||||
seg->segtype = segtype;
|
seg->segtype = segtype;
|
||||||
|
|
||||||
if (!attach_pool_lv(seg, pool, NULL, NULL))
|
if (!attach_pool_lv(seg, pool, NULL, NULL))
|
||||||
return_0;
|
return_NULL;
|
||||||
|
|
||||||
return cache_lv;
|
return cache_lv;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user