From: Jiri Slaby Date: Tue, 6 Oct 2015 12:27:45 +0000 (+0200) Subject: fcoe: use continue instead of goto+label X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=481ebb3daac39c6c1a8f78f98b823a9c9591616f;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git fcoe: use continue instead of goto+label There is a label pointing to the start of a while loop and a goto nested only in the loop. The goto jumps to the label in some cases. Replace the goto and the label by simple continue. Signed-off-by: Jiri Slaby Reviewed-by: Johannes Thumshirn Acked-by: Vasu Dev Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c index d3eb80c46bbe..d187ba9b361d 100644 --- a/drivers/scsi/fcoe/fcoe.c +++ b/drivers/scsi/fcoe/fcoe.c @@ -1873,7 +1873,6 @@ static int fcoe_percpu_receive_thread(void *arg) set_user_nice(current, MIN_NICE); -retry: while (!kthread_should_stop()) { spin_lock_bh(&p->fcoe_rx_list.lock); @@ -1883,7 +1882,7 @@ retry: set_current_state(TASK_INTERRUPTIBLE); spin_unlock_bh(&p->fcoe_rx_list.lock); schedule(); - goto retry; + continue; } spin_unlock_bh(&p->fcoe_rx_list.lock);