projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
hp_accel: Silence an uninitialized variable warning
[cascardo/linux.git]
/
drivers
/
platform
/
x86
/
hp_accel.c
diff --git
a/drivers/platform/x86/hp_accel.c
b/drivers/platform/x86/hp_accel.c
index
263002b
..
0935668
100644
(file)
--- a/
drivers/platform/x86/hp_accel.c
+++ b/
drivers/platform/x86/hp_accel.c
@@
-127,8
+127,10
@@
static int lis3lv02d_acpi_read(struct lis3lv02d *lis3, int reg, u8 *ret)
arg0.integer.value = reg;
status = acpi_evaluate_integer(dev->handle, "ALRD", &args, &lret);
+ if (ACPI_FAILURE(status))
+ return -EINVAL;
*ret = lret;
- return
(status != AE_OK) ? -EINVAL :
0;
+ return 0;
}
/**