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/striped | |
parent | 962b2a559dde931e5e519706b755bf2764b8338a (diff) | |
download | lvm2-c51b9fff19d4891addf22f35950eeae48be9cac8.tar.gz |
Use stack return macros throughout.
Diffstat (limited to 'lib/striped')
-rw-r--r-- | lib/striped/striped.c | 6 |
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; |