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
xen: fix build
[dpdk.git]
/
lib
/
librte_eal
/
common
/
eal_common_devargs.c
diff --git
a/lib/librte_eal/common/eal_common_devargs.c
b/lib/librte_eal/common/eal_common_devargs.c
index
5d075d0
..
e403717
100644
(file)
--- a/
lib/librte_eal/common/eal_common_devargs.c
+++ b/
lib/librte_eal/common/eal_common_devargs.c
@@
-58,7
+58,7
@@
rte_eal_parse_devargs_str(const char *devargs_str,
return -1;
*drvname = strdup(devargs_str);
return -1;
*drvname = strdup(devargs_str);
- if (drvname == NULL)
+ if (
*
drvname == NULL)
return -1;
/* set the first ',' to '\0' to split name and arguments */
return -1;
/* set the first ',' to '\0' to split name and arguments */
@@
-120,8
+120,7
@@
rte_eal_devargs_add(enum rte_devtype devtype, const char *devargs_str)
return 0;
fail:
return 0;
fail:
- if (buf)
- free(buf);
+ free(buf);
if (devargs) {
free(devargs->args);
free(devargs);
if (devargs) {
free(devargs->args);
free(devargs);