mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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 <[email protected]> Reviewed-by: Johannes Thumshirn <[email protected]> Acked-by: Vasu Dev <[email protected]> Signed-off-by: James Bottomley <[email protected]>
This commit is contained in:
parent
bf2cf3baa2
commit
481ebb3daa
1 changed files with 1 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue