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
ethdev: add a missing sanity check for Tx queue setup
[dpdk.git]
/
examples
/
vhost_xen
/
xenstore_parse.c
diff --git
a/examples/vhost_xen/xenstore_parse.c
b/examples/vhost_xen/xenstore_parse.c
index
9441639
..
eb629e2
100644
(file)
--- a/
examples/vhost_xen/xenstore_parse.c
+++ b/
examples/vhost_xen/xenstore_parse.c
@@
-49,7
+49,6
@@
#include <rte_common.h>
#include <rte_memory.h>
#include <rte_common.h>
#include <rte_memory.h>
-#include <rte_tailq.h>
#include <rte_eal.h>
#include <rte_malloc.h>
#include <rte_string_fns.h>
#include <rte_eal.h>
#include <rte_malloc.h>
#include <rte_string_fns.h>
@@
-248,8
+247,8
@@
parse_gntnode(int dom_id, char *path)
goto err;
}
goto err;
}
- gntnode =
(struct xen_gntnode *)
calloc(1, sizeof(struct xen_gntnode));
- gnt =
(struct xen_gnt *)
calloc(gref_num, sizeof(struct xen_gnt));
+ gntnode = calloc(1, sizeof(struct xen_gntnode));
+ gnt = calloc(gref_num, sizeof(struct xen_gnt));
if (gnt == NULL || gntnode == NULL)
goto err;
if (gnt == NULL || gntnode == NULL)
goto err;