diff options
Diffstat (limited to 'lib/mirror/mirrored.c')
-rw-r--r-- | lib/mirror/mirrored.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/mirror/mirrored.c b/lib/mirror/mirrored.c index 28715572c..4a6be8c5f 100644 --- a/lib/mirror/mirrored.c +++ b/lib/mirror/mirrored.c @@ -555,10 +555,8 @@ struct segment_type *init_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 = &_mirrored_ops; |