1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-10-06 11:33:14 +03:00

Use stack return macros throughout.

This commit is contained in:
Alasdair Kergon
2008-01-30 13:19:47 +00:00
parent 6726c5f958
commit 6af3f4f4cf
59 changed files with 789 additions and 1547 deletions

View File

@@ -87,10 +87,8 @@ int btree_insert(struct btree *t, uint32_t k, void *data)
struct node *p, **c = _lookup(&t->root, key, &p), *n;
if (!*c) {
if (!(n = dm_pool_alloc(t->mem, sizeof(*n)))) {
stack;
return 0;
}
if (!(n = dm_pool_alloc(t->mem, sizeof(*n))))
return_0;
n->key = key;
n->data = data;