Commit f4367dfe authored by Matthias Beyer's avatar Matthias Beyer Committed by Greg Kroah-Hartman

Staging: bcm: led_control.c: Replaced nested ifs with logical AND concatenation

Signed-off-by: default avatarMatthias Beyer <mail@beyermatthias.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2d2ea216
......@@ -630,15 +630,14 @@ static INT BcmGetGPIOPinInfo(struct bcm_mini_adapter *Adapter,
if (((currdriverstate == NORMAL_OPERATION) ||
(currdriverstate == IDLEMODE_EXIT) ||
(currdriverstate == FW_DOWNLOAD)) &&
(led_state_info->LED_Blink_State & currdriverstate)) {
if (led_state_info->GPIO_Num != DISABLE_GPIO_NUM) {
if (*GPIO_num_tx == DISABLE_GPIO_NUM) {
*GPIO_num_tx = led_state_info->GPIO_Num;
*uiLedTxIndex = uiIndex;
} else {
*GPIO_num_rx = led_state_info->GPIO_Num;
*uiLedRxIndex = uiIndex;
}
(led_state_info->LED_Blink_State & currdriverstate) &&
(led_state_info->GPIO_Num != DISABLE_GPIO_NUM)) {
if (*GPIO_num_tx == DISABLE_GPIO_NUM) {
*GPIO_num_tx = led_state_info->GPIO_Num;
*uiLedTxIndex = uiIndex;
} else {
*GPIO_num_rx = led_state_info->GPIO_Num;
*uiLedRxIndex = uiIndex;
}
} else {
if ((led_state_info->LED_On_State & currdriverstate) &&
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment