提交 81ed4e36 编写于 作者: D 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: NDan Williams <dan.j.williams@intel.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册