提交 defde669 编写于 作者: A Amit Shah 提交者: Rusty Russell

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: NAmit Shah <amit.shah@redhat.com>
Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
上级 a08fa92d
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册