Signed-off-by: Prameela Rani Garnepudi <prameela.j04cs@xxxxxxxxx> --- drivers/net/wireless/rsi/rsi_91x_usb_ops.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/net/wireless/rsi/rsi_91x_usb_ops.c b/drivers/net/wireless/rsi/rsi_91x_usb_ops.c index de49008..5ab2ce3 100644 --- a/drivers/net/wireless/rsi/rsi_91x_usb_ops.c +++ b/drivers/net/wireless/rsi/rsi_91x_usb_ops.c @@ -96,26 +96,25 @@ void rsi_usb_rx_thread(struct rsi_common *common) rsi_wait_event(&dev->rx_thread.event, EVENT_WAIT_FOREVER); if (atomic_read(&dev->rx_thread.thread_done)) - goto out; + break; mutex_lock(&common->tx_rxlock); status = rsi_read_pkt(common, 0); if (status) { rsi_dbg(ERR_ZONE, "%s: Failed To read data", __func__); mutex_unlock(&common->tx_rxlock); - return; + break; } mutex_unlock(&common->tx_rxlock); rsi_reset_event(&dev->rx_thread.event); if (adapter->rx_urb_submit(adapter)) { rsi_dbg(ERR_ZONE, "%s: Failed in urb submission", __func__); - return; + break; } } while (1); -out: - rsi_dbg(INFO_ZONE, "%s: Terminated thread\n", __func__); + rsi_dbg(INFO_ZONE, "%s: Terminated USB RX thread\n", __func__); complete_and_exit(&dev->rx_thread.completion, 0); } -- 2.4.11