From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx> Date: Wed, 14 Sep 2016 15:01:51 +0200 Adjust a jump label according to the current Linux coding style convention. Signed-off-by: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx> --- 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 99dc659..d8681d9 100644 --- a/drivers/char/virtio_console.c +++ b/drivers/char/virtio_console.c @@ -947,17 +947,17 @@ static ssize_t port_fops_splice_write(struct pipe_inode_info *pipe, pipe_lock(pipe); if (!pipe->nrbufs) { ret = 0; - goto error_out; + goto unlock; } ret = wait_port_writable(port, filp->f_flags & O_NONBLOCK); if (ret < 0) - goto error_out; + goto unlock; buf = alloc_buf(port->out_vq, 0, pipe->nrbufs); if (!buf) { ret = -ENOMEM; - goto error_out; + goto unlock; } sgl.n = 0; @@ -973,8 +973,7 @@ static ssize_t port_fops_splice_write(struct pipe_inode_info *pipe, if (unlikely(ret <= 0)) free_buf(buf, true); return ret; - -error_out: + unlock: pipe_unlock(pipe); return ret; } -- 2.10.0 _______________________________________________ Virtualization mailing list Virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linuxfoundation.org/mailman/listinfo/virtualization