Browse Source

Staging: bcm: Fix warning: "do {} while (0) macros should not be semicolon terminated" in led_control.h

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>
Kevin McKinney 12 years ago
parent
commit
20dcfc5358
1 changed files with 2 additions and 2 deletions
  1. 2 2
      drivers/staging/bcm/led_control.h

+ 2 - 2
drivers/staging/bcm/led_control.h

@@ -22,14 +22,14 @@
 		(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