diff options
author | Pedro Giffuni <pfg@apache.org> | 2016-04-10 02:27:05 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-04-10 20:40:32 +0100 |
commit | 429a15cc292a92c2f00be6febde7da66ed792b70 (patch) | |
tree | 5caf9a91eabfb3128bb02a1de01afe8434ec7250 /soltools/mkdepend | |
parent | 28d0e255e231639c4d79f6dedbe972d6daeae7f0 (diff) |
Drop redundant parenthesis.
Found with coccinelle: http://coccinelle.lip6.fr/
Currently only applied to C code.
(cherry picked from commit aaf15142bcbc44f0e06a3357d2b21ecf9c673d21)
Change-Id: I7d43b024752ebd47e84e2e51028f8fd132410800
Diffstat (limited to 'soltools/mkdepend')
-rw-r--r-- | soltools/mkdepend/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/soltools/mkdepend/main.c b/soltools/mkdepend/main.c index fad37374ad77..c156c19b2019 100644 --- a/soltools/mkdepend/main.c +++ b/soltools/mkdepend/main.c @@ -634,9 +634,9 @@ char *base_name(char *file) if ( *p == '/' || *p == '\\') { file = p + 1; break; - }; + } p--; - }; + } return file; } @@ -711,7 +711,7 @@ void convert_slashes(char *path) for (ptr = (char*)path; *ptr; ++ptr) if (*ptr == '\\') *ptr = '/'; - }; + } #else (void)path; #endif @@ -730,7 +730,7 @@ char* append_slash(char *path) strcat(new_string, "\\"); else strcat(new_string, "/"); - }; + } return new_string; } |