From: Al Viro Date: Wed, 13 Feb 2008 04:03:25 +0000 (+0000) Subject: wmi: (!x & y) strikes again X-Git-Tag: v2.6.25-rc2~77 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6bafba5b4765a5a252f1b8d31cbf6d2459da337;p=linux-2.6 wmi: (!x & y) strikes again Signed-off-by: Al Viro Acked-by: Carlos Corbacho Signed-off-by: Linus Torvalds --- diff --git a/drivers/acpi/wmi.c b/drivers/acpi/wmi.c index 457ed3d3f5..efacc9f8bf 100644 --- a/drivers/acpi/wmi.c +++ b/drivers/acpi/wmi.c @@ -247,7 +247,7 @@ u32 method_id, const struct acpi_buffer *in, struct acpi_buffer *out) block = &wblock->gblock; handle = wblock->handle; - if (!block->flags & ACPI_WMI_METHOD) + if (!(block->flags & ACPI_WMI_METHOD)) return AE_BAD_DATA; if (block->instance_count < instance)