staging: wilc1000: Remove an unnecessary else after break
PATCH 1/1 staging: wilc1000: Remove an unnecessary else after break
Remove else after a break. Because else is generally not useful after a break or return.
Signed-off-by Anchal Jain <[email protected]>
--- drivers/staging/wilc1000/wilc_wlan.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-)
drivers/staging/wilc1000/wilc_wlan.c +7 -8
@@ -660,8 +660,7 @@ int wilc_wlan_handle_txq(struct net_device *dev, u32 *txq_count)if (i ==0 )break ; -else - vmm_table[i] =0x0 ; + vmm_table[i] =0x0 ;acquire_bus (wilc,ACQUIRE_AND_WAKEUP ); counter =0 ;
@@ -674,7 +673,7 @@ int wilc_wlan_handle_txq(struct net_device *dev, u32 *txq_count)if ((reg &0x1 ) ==0 ) {break ; - }else { + } counter++;if (counter >200 ) { counter =0 ;
@@ -682,7 +681,7 @@ int wilc_wlan_handle_txq(struct net_device *dev, u32 *txq_count) wilc, WILC_HOST_TX_CTRL, 0);break ; } - } + }while (!wilc->quit);if (!ret)
@@ -710,9 +709,9 @@ int wilc_wlan_handle_txq(struct net_device *dev, u32 *txq_count)if ((reg >>2 ) &0x1 ) { entries = ((reg >>3 ) &0x3f );break ; - }else { -release_bus (wilc,RELEASE_ALLOW_SLEEP ); } +release_bus (wilc,RELEASE_ALLOW_SLEEP ); + }while (--timeout);if (timeout <=0 ) { ret = wilc->hif_func->hif_write_reg(
@@ -734,9 +733,9 @@ int wilc_wlan_handle_txq(struct net_device *dev, u32 *txq_count)if (!ret)break ;break ; - }else { -break ; } +break ; + }while (1 );if (!ret)
Signature · 1 line
1.9.1