Commit 20dcfc53 authored by Kevin McKinney's avatar Kevin McKinney Committed by Greg Kroah-Hartman
Browse files

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


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: default avatarKevin McKinney <klmckinney1@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 48ac0ca5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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