configurator: Clarify empty if
authorDavid Gibson <david@gibson.dropbear.id.au>
Tue, 26 Jan 2016 11:28:41 +0000 (22:28 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 26 Jan 2016 11:28:41 +0000 (22:28 +1100)
configurator.c contains an if with an empty statement on the same line as
the condition.  This is very easy to misread, and also causes a warning
from clang, so move the ; onto the next line.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
tools/configurator/configurator.c

index a590a8d4f947c402b086e90adef3e23414b1da66..021fc0f9f183a711f67231625dc04da3c615440d 100644 (file)
@@ -497,7 +497,8 @@ static bool run_test(const char *cmd, struct test *test)
        fclose(outf);
 
        if (verbose > 1)
-               if (system("cat " INPUT_FILE) == -1);
+               if (system("cat " INPUT_FILE) == -1)
+                       ;
 
        newcmd = strdup(cmd);