Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1241050
| From | Vasu Dev <vasu.dev@linux.intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH -resend 1/1] fcoe: use continue instead of goto+label |
| Date | 2015-10-07 00:40 +0200 |
| Message-ID | <qgJ3R-2UE-41@gated-at.bofh.it> (permalink) |
| References | <qgzxw-63y-19@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, 2015-10-06 at 14:27 +0200, Jiri Slaby wrote:
> 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 <jslaby@suse.cz>
> Cc: Robert Love <robert.w.love@intel.com>
> Cc: fcoe-devel@open-fcoe.org
> ---
> Sent on:
> May 5
>
> drivers/scsi/fcoe/fcoe.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> 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);
Acked-by: Vasu Dev <vasu.dev@intel.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH -resend 1/1] fcoe: use continue instead of goto+label Jiri Slaby <jslaby@suse.cz> - 2015-10-06 14:30 +0200 Re: [PATCH -resend 1/1] fcoe: use continue instead of goto+label Johannes Thumshirn <jthumshirn@suse.de> - 2015-10-06 14:30 +0200 Re: [PATCH -resend 1/1] fcoe: use continue instead of goto+label Vasu Dev <vasu.dev@linux.intel.com> - 2015-10-07 00:40 +0200
csiph-web