From 429a15cc292a92c2f00be6febde7da66ed792b70 Mon Sep 17 00:00:00 2001 From: Pedro Giffuni Date: Sun, 10 Apr 2016 02:27:05 +0000 Subject: Drop redundant parenthesis. Found with coccinelle: http://coccinelle.lip6.fr/ Currently only applied to C code. (cherry picked from commit aaf15142bcbc44f0e06a3357d2b21ecf9c673d21) Change-Id: I7d43b024752ebd47e84e2e51028f8fd132410800 --- soltools/mkdepend/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'soltools') 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; } -- cgit v1.2.3