nfit: don't override return value of nfit_mem_init

We were needlessly converting nfit_mem_init() errors to -ENOMEM.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
This commit is contained in:
Dan Williams 2016-06-10 18:20:53 -07:00
parent ad9ac5e195
commit 81ed4e3670

View File

@ -2422,10 +2422,9 @@ int acpi_nfit_init(struct acpi_nfit_desc *acpi_desc, acpi_size sz)
if (rc)
goto out_unlock;
if (nfit_mem_init(acpi_desc) != 0) {
rc = -ENOMEM;
rc = nfit_mem_init(acpi_desc);
if (rc)
goto out_unlock;
}
acpi_nfit_init_dsms(acpi_desc);