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
examples/bond: fix build with clang
[dpdk.git]
/
examples
/
vhost_xen
/
vhost_monitor.c
diff --git
a/examples/vhost_xen/vhost_monitor.c
b/examples/vhost_xen/vhost_monitor.c
index
9d99962
..
6455993
100644
(file)
--- a/
examples/vhost_xen/vhost_monitor.c
+++ b/
examples/vhost_xen/vhost_monitor.c
@@
-298,10
+298,9
@@
virtio_net_config_ll *new_device(unsigned int virtio_idx, struct xen_guest *gues
err:
if (new_ll_dev)
free(new_ll_dev);
- if (virtqueue_rx)
- rte_free(virtqueue_rx);
- if (virtqueue_tx)
- rte_free(virtqueue_tx);
+ rte_free(virtqueue_rx);
+ rte_free(virtqueue_tx);
+
return NULL;
}