Skip to content

Commit

Permalink
virtio: console: Fix return type for get_inbuf()
Browse files Browse the repository at this point in the history
get_inbuf() returns void *.  There's no reason to return void pointers
instead of the correct struct port_buffer *.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  • Loading branch information
Amit Shah authored and Rusty Russell committed Nov 2, 2011
1 parent a08fa92 commit defde66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/virtio_console.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit defde66

Please sign in to comment.