diff options
author | Axel Lin | 2016-09-19 03:33:51 +0200 |
---|---|---|
committer | Darren Hart | 2016-12-13 18:29:01 +0100 |
commit | 3526ecadc86cc1d485153255498cde7d0275dd37 (patch) | |
tree | 2b46fccd8bda332ae1ca2b9c91e6b28f0114e86e /drivers/platform/x86/intel-vbtn.c | |
parent | platform/x86: dell-wmi: Add events created by Dell Rugged 2-in-1s (diff) | |
download | kernel-qcow2-linux-3526ecadc86cc1d485153255498cde7d0275dd37.tar.gz kernel-qcow2-linux-3526ecadc86cc1d485153255498cde7d0275dd37.tar.xz kernel-qcow2-linux-3526ecadc86cc1d485153255498cde7d0275dd37.zip |
platform/x86: Use ACPI_FAILURE at appropriate places
Use ACPI_FAILURE() to replace !ACPI_SUCCESS(), this avoid !! operations.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/platform/x86/intel-vbtn.c')
-rw-r--r-- | drivers/platform/x86/intel-vbtn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/intel-vbtn.c b/drivers/platform/x86/intel-vbtn.c index 146d02f8c9bc..f04a394d52d6 100644 --- a/drivers/platform/x86/intel-vbtn.c +++ b/drivers/platform/x86/intel-vbtn.c @@ -97,7 +97,7 @@ static int intel_vbtn_probe(struct platform_device *device) int err; status = acpi_evaluate_object(handle, "VBDL", NULL, NULL); - if (!ACPI_SUCCESS(status)) { + if (ACPI_FAILURE(status)) { dev_warn(&device->dev, "failed to read Intel Virtual Button driver\n"); return -ENODEV; } |