]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_cfgfile/rte_cfgfile.c
remove extra parentheses in return statement
[dpdk.git] / lib / librte_cfgfile / rte_cfgfile.c
index a677dadecf7741b4eeeeb9f7388b387f14854ed0..1cd523f596776b4e707a963ed9d72346c2f6e120 100644 (file)
@@ -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;
 }
 }