aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/virtio_console.c
diff options
context:
space:
mode:
authorAmit Shah <amit.shah@redhat.com>2011-09-14 03:36:42 -0400
committerRusty Russell <rusty@rustcorp.com.au>2011-11-01 21:11:00 -0400
commitdefde66996476295dc7b1b60ea318965f8c3ad86 (patch)
tree8dcf44f08a9287dec917e36808867e7943ea0b01 /drivers/char/virtio_console.c
parenta08fa92d16f2fa112e3400c6c513d23ae78b960a (diff)
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 <amit.shah@redhat.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/char/virtio_console.c')
-rw-r--r--drivers/char/virtio_console.c2
1 files changed, 1 insertions, 1 deletions
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:
348} 348}
349 349
350/* Callers should take appropriate locks */ 350/* Callers should take appropriate locks */
351static void *get_inbuf(struct port *port) 351static struct port_buffer *get_inbuf(struct port *port)
352{ 352{
353 struct port_buffer *buf; 353 struct port_buffer *buf;
354 struct virtqueue *vq; 354 struct virtqueue *vq;