We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c499e4 commit 7dd6f4aCopy full SHA for 7dd6f4a
drivers/scsi/megaraid/megaraid_sas_base.c
@@ -7150,22 +7150,18 @@ static int megasas_alloc_ctrl_mem(struct megasas_instance *instance)
7150
switch (instance->adapter_type) {
7151
case MFI_SERIES:
7152
if (megasas_alloc_mfi_ctrl_mem(instance))
7153
- goto fail;
+ return -ENOMEM;
7154
break;
7155
case AERO_SERIES:
7156
case VENTURA_SERIES:
7157
case THUNDERBOLT_SERIES:
7158
case INVADER_SERIES:
7159
if (megasas_alloc_fusion_context(instance))
7160
7161
7162
}
7163
7164
return 0;
7165
- fail:
7166
- kfree(instance->reply_map);
7167
- instance->reply_map = NULL;
7168
- return -ENOMEM;
7169
7170
7171
/*
0 commit comments