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:
parent
16321f1caa
commit
766ad08900
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user