staging: rtl8723bs: hal: fix condition with no effect
authorSaurav Girepunje <saurav.girepunje@gmail.com>
Sat, 25 Jan 2020 13:46:04 +0000 (19:16 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Feb 2020 00:22:56 +0000 (16:22 -0800)
fix warning reorted by coccicheck
WARNING: possible condition with no effect (if == else)

Signed-off-by: Saurav Girepunje <saurav.girepunje@gmail.com>
Link: https://lore.kernel.org/r/20200125134604.GA4247@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c

index 02da0a883594b8b3e9ec14ab70e2acd658d64ed1..8dfa9b988e20f9d0a32a90b9324b9e7c9ec9972f 100644 (file)
@@ -1610,8 +1610,6 @@ static void halbtc8723b2ant_TdmaDurationAdjust(
                                                HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(13);
                                        else if (maxInterval == 2)
                                                HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(14);
-                                       else if (maxInterval == 3)
-                                               HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(15);
                                        else
                                                HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(15);
                                } else {
@@ -1619,8 +1617,6 @@ static void halbtc8723b2ant_TdmaDurationAdjust(
                                                HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(9);
                                        else if (maxInterval == 2)
                                                HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(10);
-                                       else if (maxInterval == 3)
-                                               HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(11);
                                        else
                                                HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(11);
                                }
@@ -1630,8 +1626,6 @@ static void halbtc8723b2ant_TdmaDurationAdjust(
                                                HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(5);
                                        else if (maxInterval == 2)
                                                HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(6);
-                                       else if (maxInterval == 3)
-                                               HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(7);
                                        else
                                                HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(7);
                                } else {
@@ -1639,8 +1633,6 @@ static void halbtc8723b2ant_TdmaDurationAdjust(
                                                HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(1);
                                        else if (maxInterval == 2)
                                                HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(2);
-                                       else if (maxInterval == 3)
-                                               HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(3);
                                        else
                                                HAL_BTC8723B2ANT_DMA_DURATION_ADJUST(3);
                                }