projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a08fa92
)
virtio: console: Fix return type for get_inbuf()
author
Amit Shah
<amit.shah@redhat.com>
Wed, 14 Sep 2011 07:36:42 +0000
(13:06 +0530)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Wed, 2 Nov 2011 01:11:00 +0000
(11:41 +1030)
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>
drivers/char/virtio_console.c
patch
|
blob
|
history
diff --git
a/drivers/char/virtio_console.c
b/drivers/char/virtio_console.c
index 8f49d0f034e04a7bdcd7b96857649ce7382f1e77..3516aeb7f06cf8b901fb68a9e3552c1d2d69acbf 100644
(file)
--- 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;