From: Markus Elfring <[email protected]>
Date: Wed, 14 Sep 2016 15:15:06 +0200

Adjust a jump label according to the current Linux coding style convention.

Signed-off-by: Markus Elfring <[email protected]>
---
 drivers/char/virtio_console.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c
index babc812..69c6718 100644
--- a/drivers/char/virtio_console.c
+++ b/drivers/char/virtio_console.c
@@ -634,14 +634,14 @@ static ssize_t __send_to_port(struct port *port, struct 
scatterlist *sg,
 
        if (err) {
                in_count = 0;
-               goto done;
+               goto unlock;
        }
 
        if (out_vq->num_free == 0)
                port->outvq_full = true;
 
        if (nonblock)
-               goto done;
+               goto unlock;
 
        /*
         * Wait till the host acknowledges it pushed out the data we
@@ -655,7 +655,7 @@ static ssize_t __send_to_port(struct port *port, struct 
scatterlist *sg,
        while (!virtqueue_get_buf(out_vq, &len)
                && !virtqueue_is_broken(out_vq))
                cpu_relax();
-done:
+ unlock:
        spin_unlock_irqrestore(&port->outvq_lock, flags);
 
        port->stats.bytes_sent += in_count;
-- 
2.10.0

Reply via email to