Commit 81ed4e36 authored by Dan Williams's avatar Dan Williams

nfit: don't override return value of nfit_mem_init

We were needlessly converting nfit_mem_init() errors to -ENOMEM.
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent ad9ac5e1
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment