projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
047b9b9
)
virtio_ring: adapt to notify() returning bool
author
Heinz Graalfs
<graalfs@linux.vnet.ibm.com>
Tue, 5 Nov 2013 10:50:27 +0000
(21:20 +1030)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Tue, 5 Nov 2013 10:51:08 +0000
(21:21 +1030)
Correct if statement to check for bool returned by notify()
(introduced in
5b1bf7cb673a
).
Signed-off-by: Heinz Graalfs <graalfs@linux.vnet.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/virtio/virtio_ring.c
patch
|
blob
|
history
diff --git
a/drivers/virtio/virtio_ring.c
b/drivers/virtio/virtio_ring.c
index
f477775
..
28b5338
100644
(file)
--- a/
drivers/virtio/virtio_ring.c
+++ b/
drivers/virtio/virtio_ring.c
@@
-441,7
+441,7
@@
bool virtqueue_notify(struct virtqueue *_vq)
return false;
/* Prod other side to tell it about changes. */
- if (
vq->notify(_vq) < 0
) {
+ if (
!vq->notify(_vq)
) {
vq->broken = true;
return false;
}