vhost: fix logically dead code

CID 107107 (#1 of 1): Logically dead code
Fixes: af4f2c5feb2e ("vhost: fix code style")

Signed-off-by: Huawei Xie <huawei.xie@intel.com>
Acked-by: John McNamara <john.mcnamara@intel.com>
This commit is contained in:
Huawei Xie 2015-12-11 01:57:20 +08:00 committed by Thomas Monjalon
parent 16321f1caa
commit 766ad08900

View File

@ -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;
}