From: Huawei Xie Date: Thu, 10 Dec 2015 17:57:20 +0000 (+0800) Subject: vhost: fix logically dead code X-Git-Tag: spdx-start~7766 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=766ad089009f017063ca39ba00458d8f80f14b4d;p=dpdk.git vhost: fix logically dead code CID 107107 (#1 of 1): Logically dead code Fixes: af4f2c5feb2e ("vhost: fix code style") Signed-off-by: Huawei Xie Acked-by: John McNamara --- diff --git a/lib/librte_vhost/virtio-net.c b/lib/librte_vhost/virtio-net.c index 8364938068..de78a0f6a2 100644 --- 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; }