1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

cache: lv_cache_create returns LV ptr, so return NULL not 0 on error

This commit is contained in:
Jonathan Brassow 2014-02-11 13:47:26 -06:00
parent d68e5d5ab9
commit 48aef76ec5

View File

@ -129,7 +129,7 @@ struct logical_volume *lv_cache_create(struct logical_volume *pool,
seg->segtype = segtype;
if (!attach_pool_lv(seg, pool, NULL, NULL))
return_0;
return_NULL;
return cache_lv;
}