lkml.org 
[lkml]   [2016]   [Sep]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 08/11] virtio_console: Rename jump labels in port_fops_write()
    From
    Date
    From: Markus Elfring <elfring@users.sourceforge.net>
    Date: Wed, 14 Sep 2016 15:07:42 +0200

    Adjust jump labels according to the current Linux coding style convention.

    Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
    ---
    drivers/char/virtio_console.c | 9 ++++-----
    1 file changed, 4 insertions(+), 5 deletions(-)

    diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c
    index d8681d9..babc812 100644
    --- a/drivers/char/virtio_console.c
    +++ b/drivers/char/virtio_console.c
    @@ -842,7 +842,7 @@ static ssize_t port_fops_write(struct file *filp, const char __user *ubuf,
    ret = copy_from_user(buf->buf, ubuf, count);
    if (ret) {
    ret = -EFAULT;
    - goto free_buf;
    + goto free_buffer;
    }

    /*
    @@ -857,11 +857,10 @@ static ssize_t port_fops_write(struct file *filp, const char __user *ubuf,
    ret = __send_to_port(port, sg, 1, count, buf, nonblock);

    if (nonblock && ret > 0)
    - goto out;
    -
    -free_buf:
    + goto exit;
    + free_buffer:
    free_buf(buf, true);
    -out:
    + exit:
    return ret;
    }

    --
    2.10.0
    \
     
     \ /
      Last update: 2016-09-17 09:59    [W:4.092 / U:0.452 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site