diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2011-09-24 21:19:30 +0000 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2011-09-24 21:19:30 +0000 |
commit | f1ab501a58e84270de711e3cd0f70a60ab923e51 (patch) | |
tree | 962a33768cea1918cb68d126451a7dfd5900f3e1 /lib/raid/raid.c | |
parent | 102dd99ca4d82090e62af55ae3d4d5aaaa0c527e (diff) | |
download | lvm2-f1ab501a58e84270de711e3cd0f70a60ab923e51.tar.gz lvm2-f1ab501a58e84270de711e3cd0f70a60ab923e51.tar.xz lvm2-f1ab501a58e84270de711e3cd0f70a60ab923e51.zip |
Fix log_error() usage
Cosmetic - skip <bactrace> when error has been just printed in raid segtype.
Add missing log_error if allocation would fail for unknown segtype.
Diffstat (limited to 'lib/raid/raid.c')
-rw-r--r-- | lib/raid/raid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/raid/raid.c b/lib/raid/raid.c index 8bc33440..c3fc4b13 100644 --- a/lib/raid/raid.c +++ b/lib/raid/raid.c @@ -338,7 +338,7 @@ static struct segment_type *_init_raid_segtype(struct cmd_context *cmd, if (!segtype) { log_error("Failed to allocate memory for %s segtype", raid_type); - return_NULL; + return NULL; } segtype->cmd = cmd; |