forked from luck/tmp_suning_uos_patched
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:
parent
ad9ac5e195
commit
81ed4e3670
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user