diff options
author | Alasdair Kergon <agk@redhat.com> | 2008-01-30 13:19:47 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2008-01-30 13:19:47 +0000 |
commit | c51b9fff19d4891addf22f35950eeae48be9cac8 (patch) | |
tree | a2bdcb2e7b6828e82fe894bb4a6a8b6125d0cebc /lib/snapshot/snapshot.c | |
parent | 962b2a559dde931e5e519706b755bf2764b8338a (diff) | |
download | lvm2-c51b9fff19d4891addf22f35950eeae48be9cac8.tar.gz |
Use stack return macros throughout.
Diffstat (limited to 'lib/snapshot/snapshot.c')
-rw-r--r-- | lib/snapshot/snapshot.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/snapshot/snapshot.c b/lib/snapshot/snapshot.c index fed2cd4ef..b2f21bfe5 100644 --- a/lib/snapshot/snapshot.c +++ b/lib/snapshot/snapshot.c @@ -74,10 +74,8 @@ static int _snap_text_import(struct lv_segment *seg, const struct config_node *s } if (!vg_add_snapshot(seg->lv->name, org, cow, - &seg->lv->lvid, seg->len, chunk_size)) { - stack; - return 0; - } + &seg->lv->lvid, seg->len, chunk_size)) + return_0; return 1; } @@ -304,10 +302,8 @@ struct segment_type *init_segtype(struct cmd_context *cmd) char *dso; #endif - if (!segtype) { - stack; - return NULL; - } + if (!segtype) + return_NULL; segtype->cmd = cmd; segtype->ops = &_snapshot_ops; |