ACPI: NFIT: Fix comparison to '-ENXIO'
authorZhang Qilong <zhangqilong3@huawei.com>
Tue, 27 Oct 2020 13:49:01 +0000 (21:49 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Nov 2020 09:29:06 +0000 (10:29 +0100)
commitc02d3dece1393bca8cdfe566989f64599178a18f
tree239abd49ab0de0846e7a9a06b8896e17a2df3c17
parent25b349b4d8229209266f5dd87744bafad2306bbc
ACPI: NFIT: Fix comparison to '-ENXIO'

[ Upstream commit 85f971b65a692b68181438e099b946cc06ed499b ]

Initial value of rc is '-ENXIO', and we should
use the initial value to check it.

Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
Reviewed-by: Pankaj Gupta <pankaj.gupta.linux@gmail.com>
Reviewed-by: Vishal Verma <vishal.l.verma@intel.com>
[ rjw: Subject edit ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/acpi/nfit/core.c