From: Amit Shah Date: Wed, 14 Sep 2011 07:36:42 +0000 (+0530) Subject: virtio: console: Fix return type for get_inbuf() X-Git-Tag: next-20110915~47^2~4 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2d19fa1d14716d498037740a21f9bbe2502fd43d;p=karo-tx-linux.git 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: Amit Shah Signed-off-by: Rusty Russell --- diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c index 8f49d0f034e0..3516aeb7f06c 100644 --- a/drivers/char/virtio_console.c +++ b/drivers/char/virtio_console.c @@ -348,7 +348,7 @@ fail: } /* 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;