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
remove extra parentheses in return statement
[dpdk.git]
/
lib
/
librte_cfgfile
/
rte_cfgfile.c
diff --git
a/lib/librte_cfgfile/rte_cfgfile.c
b/lib/librte_cfgfile/rte_cfgfile.c
index
a677dad
..
1cd523f
100644
(file)
--- a/
lib/librte_cfgfile/rte_cfgfile.c
+++ b/
lib/librte_cfgfile/rte_cfgfile.c
@@
-306,7
+306,7
@@
_get_section(struct rte_cfgfile *cfg, const char *sectionname)
int
rte_cfgfile_has_section(struct rte_cfgfile *cfg, const char *sectionname)
{
int
rte_cfgfile_has_section(struct rte_cfgfile *cfg, const char *sectionname)
{
- return
(_get_section(cfg, sectionname) != NULL)
;
+ return
_get_section(cfg, sectionname) != NULL
;
}
int
}
int
@@
-352,5
+352,5
@@
int
rte_cfgfile_has_entry(struct rte_cfgfile *cfg, const char *sectionname,
const char *entryname)
{
rte_cfgfile_has_entry(struct rte_cfgfile *cfg, const char *sectionname,
const char *entryname)
{
- return
(rte_cfgfile_get_entry(cfg, sectionname, entryname) != NULL)
;
+ return
rte_cfgfile_get_entry(cfg, sectionname, entryname) != NULL
;
}
}