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>
This commit is contained in:
Родитель
48ac0ca5ae
Коммит
20dcfc5358
|
@ -22,14 +22,14 @@
|
||||||
(Adapter->LEDInfo.LEDState[index].BitPolarity == 1) ? \
|
(Adapter->LEDInfo.LEDState[index].BitPolarity == 1) ? \
|
||||||
wrmaltWithLock(Adapter, BCM_GPIO_OUTPUT_SET_REG, &gpio_val, sizeof(gpio_val)) : \
|
wrmaltWithLock(Adapter, BCM_GPIO_OUTPUT_SET_REG, &gpio_val, sizeof(gpio_val)) : \
|
||||||
wrmaltWithLock(Adapter, BCM_GPIO_OUTPUT_CLR_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 { \
|
#define TURN_OFF_LED(GPIO, index) do { \
|
||||||
UINT gpio_val = GPIO; \
|
UINT gpio_val = GPIO; \
|
||||||
(Adapter->LEDInfo.LEDState[index].BitPolarity == 1) ? \
|
(Adapter->LEDInfo.LEDState[index].BitPolarity == 1) ? \
|
||||||
wrmaltWithLock(Adapter, BCM_GPIO_OUTPUT_CLR_REG, &gpio_val, sizeof(gpio_val)) : \
|
wrmaltWithLock(Adapter, BCM_GPIO_OUTPUT_CLR_REG, &gpio_val, sizeof(gpio_val)) : \
|
||||||
wrmaltWithLock(Adapter, BCM_GPIO_OUTPUT_SET_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
|
#define B_ULONG32 unsigned long
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче