Staging: bcm: Fix warning: "do {} while (0) macros should not be semicolon terminated...
authorKevin McKinney <klmckinney1@gmail.com>
Sat, 15 Dec 2012 00:26:46 +0000 (19:26 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Jan 2013 18:51:49 +0000 (10:51 -0800)
This patch properly fixes the warning "do {} while
(0) macros should not be semicolon terminated" as
reported by checkpath.pl

Signed-off-by: Kevin McKinney <klmckinney1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/bcm/led_control.h

index 3eef21c..8ae8e43 100644 (file)
                (Adapter->LEDInfo.LEDState[index].BitPolarity == 1) ?   \
                        wrmaltWithLock(Adapter, BCM_GPIO_OUTPUT_SET_REG, &gpio_val, sizeof(gpio_val)) : \
                        wrmaltWithLock(Adapter, BCM_GPIO_OUTPUT_CLR_REG, &gpio_val, sizeof(gpio_val)); \
-       } while (0);
+       } while (0)
 
 #define TURN_OFF_LED(GPIO, index)  do {                                        \
                UINT gpio_val = GPIO;                                   \
                (Adapter->LEDInfo.LEDState[index].BitPolarity == 1) ?   \
                        wrmaltWithLock(Adapter, BCM_GPIO_OUTPUT_CLR_REG, &gpio_val, sizeof(gpio_val)) : \
                        wrmaltWithLock(Adapter, BCM_GPIO_OUTPUT_SET_REG, &gpio_val, sizeof(gpio_val)); \
-       } while (0);
+       } while (0)
 
 #define B_ULONG32 unsigned long