]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: fix empty macros found by -Wextra
authorDave Jones <davej@redhat.com>
Mon, 9 Jul 2007 18:33:14 +0000 (11:33 -0700)
committerLen Brown <len.brown@intel.com>
Sun, 22 Jul 2007 04:54:24 +0000 (00:54 -0400)
commitc42860563e2b8f5b25dbbe410aaa62ab2c5a5c9d
treede78bbb0cef7714124fe83cca057f65693a44dcb
parent605f9ce95beaaae2de727ba4bca15eca9ee8822a
ACPI: fix empty macros found by -Wextra

ACPI has a ton of macros which make a bunch of empty if's when configured
in non-debug mode.

[lenb: The code it complaines about is functionally correct,
 so this patch is just to make -Wextra happier]

#define DBG()

if(...)
        DBG();
next_c_statement

which turns into
if(...) ;
next_c_statement

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/glue.c
include/acpi/acmacros.h