Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit defde669 authored by Amit Shah's avatar Amit Shah Committed by Rusty Russell
Browse files

virtio: console: Fix return type for get_inbuf()



get_inbuf() returns void *.  There's no reason to return void pointers
instead of the correct struct port_buffer *.

Signed-off-by: default avatarAmit Shah <amit.shah@redhat.com>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent a08fa92d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -348,7 +348,7 @@ static struct port_buffer *alloc_buf(size_t buf_size)
}

/* Callers should take appropriate locks */
static void *get_inbuf(struct port *port)
static struct port_buffer *get_inbuf(struct port *port)
{
	struct port_buffer *buf;
	struct virtqueue *vq;