summaryrefslogtreecommitdiff
path: root/lib/striped
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2008-01-30 13:19:47 +0000
committerAlasdair Kergon <agk@redhat.com>2008-01-30 13:19:47 +0000
commitc51b9fff19d4891addf22f35950eeae48be9cac8 (patch)
treea2bdcb2e7b6828e82fe894bb4a6a8b6125d0cebc /lib/striped
parent962b2a559dde931e5e519706b755bf2764b8338a (diff)
downloadlvm2-c51b9fff19d4891addf22f35950eeae48be9cac8.tar.gz
Use stack return macros throughout.
Diffstat (limited to 'lib/striped')
-rw-r--r--lib/striped/striped.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/striped/striped.c b/lib/striped/striped.c
index 3b33357db..5278919b6 100644
--- a/lib/striped/striped.c
+++ b/lib/striped/striped.c
@@ -213,10 +213,8 @@ struct segment_type *init_striped_segtype(struct cmd_context *cmd)
{
struct segment_type *segtype = dm_malloc(sizeof(*segtype));
- if (!segtype) {
- stack;
- return NULL;
- }
+ if (!segtype)
+ return_NULL;
segtype->cmd = cmd;
segtype->ops = &_striped_ops;