From: Al Viro Date: Wed, 13 Feb 2008 04:03:25 +0000 (+0000) Subject: wmi: (!x & y) strikes again X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=e6bafba5b4765a5a252f1b8d31cbf6d2459da337;p=openwrt%2Fstaging%2Fblogic.git 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 457ed3d3f51c..efacc9f8bfe3 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)