projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3650b22
)
ACPI: NFIT: Fix comparison to '-ENXIO'
author
Zhang Qilong
<zhangqilong3@huawei.com>
Tue, 27 Oct 2020 13:49:01 +0000
(21:49 +0800)
committer
Rafael J. Wysocki
<rafael.j.wysocki@intel.com>
Tue, 27 Oct 2020 18:34:56 +0000
(19:34 +0100)
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>
drivers/acpi/nfit/core.c
patch
|
blob
|
history
diff --git
a/drivers/acpi/nfit/core.c
b/drivers/acpi/nfit/core.c
index
7562278
..
3a3c209
100644
(file)
--- a/
drivers/acpi/nfit/core.c
+++ b/
drivers/acpi/nfit/core.c
@@
-1564,7
+1564,7
@@
static ssize_t format1_show(struct device *dev,
le16_to_cpu(nfit_dcr->dcr->code));
break;
}
- if (rc != ENXIO)
+ if (rc !=
-
ENXIO)
break;
}
mutex_unlock(&acpi_desc->init_mutex);