staging: wilc1000: else is not generally useful after a break or return
PATCH 1/1 staging: wilc1000: else is not generally useful after a break or return
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 | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-)
drivers/staging/wilc1000/wilc_wlan.c +8 -11
@@ -626,13 +626,12 @@ int wilc_wlan_handle_txq(struct net_device *dev, u32 *txq_count)if ((reg &0x1 ) ==0 ) {break ; - }else { - counter++; -if (counter >200 ) { - counter =0 ; - ret = wilc->hif_func->hif_write_reg (wilc,WILC_HOST_TX_CTRL ,0 ); -break ; - } + } + counter++; +if (counter >200 ) { + counter =0 ; + ret = wilc->hif_func->hif_write_reg (wilc,WILC_HOST_TX_CTRL ,0 ); +break ; } }while (!wilc->quit);
@@ -658,9 +657,8 @@ 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 (wilc,WILC_HOST_VMM_CTL ,0x0 );
@@ -679,9 +677,8 @@ 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