Commit 3ca2a90d authored by Saurav Girepunje's avatar Saurav Girepunje Committed by Greg Kroah-Hartman

staging: rtl8723bs: hal: fix condition with no effect

fix warning reorted by coccicheck
WARNING: possible condition with no effect (if == else)
Signed-off-by: default avatarSaurav Girepunje <saurav.girepunje@gmail.com>
Link: https://lore.kernel.org/r/20200125134604.GA4247@google.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent bb6d3fb3
...@@ -1610,8 +1610,6 @@ static void halbtc8723b2ant_TdmaDurationAdjust( ...@@ -1610,8 +1610,6 @@ static void halbtc8723b2ant_TdmaDurationAdjust(
HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(13); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(13);
else if (maxInterval == 2) else if (maxInterval == 2)
HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(14); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(14);
else if (maxInterval == 3)
HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(15);
else else
HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(15); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(15);
} else { } else {
...@@ -1619,8 +1617,6 @@ static void halbtc8723b2ant_TdmaDurationAdjust( ...@@ -1619,8 +1617,6 @@ static void halbtc8723b2ant_TdmaDurationAdjust(
HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(9); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(9);
else if (maxInterval == 2) else if (maxInterval == 2)
HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(10); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(10);
else if (maxInterval == 3)
HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(11);
else else
HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(11); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(11);
} }
...@@ -1630,8 +1626,6 @@ static void halbtc8723b2ant_TdmaDurationAdjust( ...@@ -1630,8 +1626,6 @@ static void halbtc8723b2ant_TdmaDurationAdjust(
HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(5); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(5);
else if (maxInterval == 2) else if (maxInterval == 2)
HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(6); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(6);
else if (maxInterval == 3)
HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(7);
else else
HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(7); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(7);
} else { } else {
...@@ -1639,8 +1633,6 @@ static void halbtc8723b2ant_TdmaDurationAdjust( ...@@ -1639,8 +1633,6 @@ static void halbtc8723b2ant_TdmaDurationAdjust(
HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(1); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(1);
else if (maxInterval == 2) else if (maxInterval == 2)
HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(2); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(2);
else if (maxInterval == 3)
HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(3);
else else
HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(3); HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(3);
} }
......
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