aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/intel-vbtn.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2016-09-18 21:33:51 -0400
committerDarren Hart <dvhart@linux.intel.com>2016-12-13 12:29:01 -0500
commit3526ecadc86cc1d485153255498cde7d0275dd37 (patch)
tree2b46fccd8bda332ae1ca2b9c91e6b28f0114e86e /drivers/platform/x86/intel-vbtn.c
parent5dc444b804eae57abaf6f05663d9cb9f030bb9d2 (diff)
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.c2
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)
97 int err; 97 int err;
98 98
99 status = acpi_evaluate_object(handle, "VBDL", NULL, NULL); 99 status = acpi_evaluate_object(handle, "VBDL", NULL, NULL);
100 if (!ACPI_SUCCESS(status)) { 100 if (ACPI_FAILURE(status)) {
101 dev_warn(&device->dev, "failed to read Intel Virtual Button driver\n"); 101 dev_warn(&device->dev, "failed to read Intel Virtual Button driver\n");
102 return -ENODEV; 102 return -ENODEV;
103 } 103 }