]> granicus.if.org Git - graphviz/commitdiff
acyclic: remove unnecessary parens
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 2 Apr 2022 15:05:57 +0000 (08:05 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 5 Apr 2022 00:19:01 +0000 (17:19 -0700)
cmd/tools/acyclic.c

index 109bb3ac7b796648e539779ac2545ffeccffbeef..792630962b5d7d3a889da164342788f376123520 100644 (file)
@@ -82,7 +82,7 @@ static int dfs(Agraph_t * g, Agnode_t * t, int hasCycle)
                    addRevEdge(g, e);
            } else {
                char* key = agnameof (e);
-               if (!key || (agedge(g, h, t, key, 0) == 0))
+               if (!key || agedge(g, h, t, key, 0) == 0)
                    addRevEdge(g, e);
            }
            agdelete(g, e);
@@ -121,7 +121,7 @@ static FILE *openFile(const char *name, const char *mode)
                cmd, name, modestr);
        graphviz_exit(-1);
     }
-    return (fp);
+    return fp;
 }
 
 static void init(int argc, char *argv[])