mirror of
git://sourceware.org/git/lvm2.git
synced 2025-10-19 07:33:14 +03:00
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user