diff options
author | Noel Grandin <noel@peralex.com> | 2015-02-11 13:20:49 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-02-23 09:26:58 +0200 |
commit | ba233e87efddf0a6751b35784dca1c805364ff3b (patch) | |
tree | 9d7c8a4256e688c2d47cb6ecf580ac196c4da2c0 /soltools/mkdepend/include.c | |
parent | a2fa9e2468aa5c4fd4b610c5d0ebc8959e87a072 (diff) |
remove unnecessary parenthesis in return statements
found with
$ git grep -lP 'return\s*\(\s*\w+\s*\)\s*;'
Change-Id: Ic51606877a9edcadeb647c5bf17bc928b69ab60e
Diffstat (limited to 'soltools/mkdepend/include.c')
-rw-r--r-- | soltools/mkdepend/include.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/soltools/mkdepend/include.c b/soltools/mkdepend/include.c index 4cfbff7d6fdc..cb1cc17750eb 100644 --- a/soltools/mkdepend/include.c +++ b/soltools/mkdepend/include.c @@ -144,7 +144,7 @@ struct inclist *inc_path(char *file, char *include, boolean dot, struct Includes if (!found) ip = NULL; - return(ip); + return ip; } int exists_path(struct IncludesCollection *incCollection, char *path) @@ -229,15 +229,15 @@ void remove_dotdot(char *path) int isdot(char *p) { if(p && p[0] == '.' && p[1] == '\0') - return(TRUE); - return(FALSE); + return TRUE; + return FALSE; } int isdotdot(char *p) { if(p && p[0] == '.' && p[1] == '.' && p[2] == '\0') - return(TRUE); - return(FALSE); + return TRUE; + return FALSE; } int issymbolic(char *dir, char *component) @@ -249,16 +249,16 @@ int issymbolic(char *dir, char *component) sprintf(buf, "%s%s%s", dir, *dir ? "/" : "", component); for (pp=notdotdot; *pp; pp++) if (strcmp(*pp, buf) == 0) - return (TRUE); + return TRUE; if (lstat(buf, &st) == 0 && (st.st_mode & S_IFMT) == S_IFLNK) { *pp++ = copy(buf); if (pp >= ¬dotdot[ MAXDIRS ]) fatalerr("out of .. dirs, increase MAXDIRS\n"); - return(TRUE); + return TRUE; } #endif - return(FALSE); + return FALSE; } /* @@ -281,7 +281,7 @@ struct inclist *newinclude(char *newfile, char *incstring) else ip->i_incstring = copy(incstring); - return(ip); + return ip; } void included_by(struct inclist *ip, struct inclist *newfile) |