Commit 481ebb3d authored by Jiri Slaby's avatar Jiri Slaby Committed by James Bottomley

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: default avatarJiri Slaby <jslaby@suse.cz>
Reviewed-by: default avatarJohannes Thumshirn <jthumshirn@suse.de>
Acked-by: default avatarVasu Dev <vasu.dev@intel.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Odin.com>
parent bf2cf3ba
...@@ -1873,7 +1873,6 @@ static int fcoe_percpu_receive_thread(void *arg) ...@@ -1873,7 +1873,6 @@ static int fcoe_percpu_receive_thread(void *arg)
set_user_nice(current, MIN_NICE); set_user_nice(current, MIN_NICE);
retry:
while (!kthread_should_stop()) { while (!kthread_should_stop()) {
spin_lock_bh(&p->fcoe_rx_list.lock); spin_lock_bh(&p->fcoe_rx_list.lock);
...@@ -1883,7 +1882,7 @@ static int fcoe_percpu_receive_thread(void *arg) ...@@ -1883,7 +1882,7 @@ static int fcoe_percpu_receive_thread(void *arg)
set_current_state(TASK_INTERRUPTIBLE); set_current_state(TASK_INTERRUPTIBLE);
spin_unlock_bh(&p->fcoe_rx_list.lock); spin_unlock_bh(&p->fcoe_rx_list.lock);
schedule(); schedule();
goto retry; continue;
} }
spin_unlock_bh(&p->fcoe_rx_list.lock); spin_unlock_bh(&p->fcoe_rx_list.lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment