projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4519169
)
hp-wmi: Fix mixing up of and/or directive
author
Thomas Renninger
<
[email protected]
>
Thu, 29 Jul 2010 10:27:59 +0000
(12:27 +0200)
committer
Matthew Garrett
<
[email protected]
>
Tue, 3 Aug 2010 13:49:12 +0000
(09:49 -0400)
This should have been an "and". Additionally checking for !obj
is even better.
Signed-off-by: Thomas Renninger <
[email protected]
>
CC:
[email protected]
CC:
[email protected]
CC:
[email protected]
Signed-off-by: Matthew Garrett <
[email protected]
>
drivers/platform/x86/hp-wmi.c
patch
|
blob
|
history
diff --git
a/drivers/platform/x86/hp-wmi.c
b/drivers/platform/x86/hp-wmi.c
index c5f95d1e0315bd416bea0e127e9ee84ea1b3645b..7e8a136b025b3e289ba44033e0ea0fec85df61eb 100644
(file)
--- a/
drivers/platform/x86/hp-wmi.c
+++ b/
drivers/platform/x86/hp-wmi.c
@@
-434,7
+434,9
@@
static void hp_wmi_notify(u32 value, void *context)
obj = (union acpi_object *)response.pointer;
- if (obj || obj->type != ACPI_TYPE_BUFFER) {
+ if (!obj)
+ return;
+ if (obj->type != ACPI_TYPE_BUFFER) {
printk(KERN_INFO "hp-wmi: Unknown response received %d\n",
obj->type);
kfree(obj);