git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
vhost: fix logically dead code
[dpdk.git]
/
lib
/
librte_vhost
/
virtio-net.c
diff --git
a/lib/librte_vhost/virtio-net.c
b/lib/librte_vhost/virtio-net.c
index
8364938
..
de78a0f
100644
(file)
--- a/
lib/librte_vhost/virtio-net.c
+++ b/
lib/librte_vhost/virtio-net.c
@@
-863,8
+863,7
@@
int rte_vhost_enable_guest_notification(struct virtio_net *dev,
return -1;
}
- dev->virtqueue[queue_id]->used->flags =
- enable ? 0 : VRING_USED_F_NO_NOTIFY;
+ dev->virtqueue[queue_id]->used->flags = VRING_USED_F_NO_NOTIFY;
return 0;
}