mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
hp-wmi: Fix mixing up of and/or directive
This should have been an "and". Additionally checking for !obj is even better. Signed-off-by: Thomas Renninger <trenn@suse.de> CC: linux-acpi@vger.kernel.or CC: platform-driver-x86@vger.kernel.org CC: mjg@redhat.com Signed-off-by: Matthew Garrett <mjg@redhat.com>
This commit is contained in:
parent
4519169b8f
commit
c4775062d5
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue