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:
Thomas Renninger 2010-07-29 12:27:59 +02:00 коммит произвёл Matthew Garrett
Родитель 4519169b8f
Коммит c4775062d5
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -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);