]> granicus.if.org Git - graphviz/commitdiff
gvgen: remove unnecessary bracketing
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 28 Nov 2021 21:59:18 +0000 (13:59 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 5 Dec 2021 02:52:04 +0000 (18:52 -0800)
cmd/tools/gvgen.c

index f6921d933f8a4cf5195c57bd3c6271e04bda2652..74ef9302ada8a590d7168fd79eb538be3e1d8aef 100644 (file)
@@ -383,7 +383,7 @@ static GraphType init(int argc, char *argv[], opts_t* opts)
                errexit(c);
            break;
        case 'i':
-           if (readOne(optarg,&(opts->cnt)))
+           if (readOne(optarg, &opts->cnt))
                errexit(c);
            break;
        case 'v':
@@ -490,7 +490,7 @@ int main(int argc, char *argv[])
        makeBall(opts.graphSize1, opts.graphSize2, ef);
        break;
     case torus:
-       if ((opts.parm1 == 0) && (opts.parm2 == 0))
+       if (opts.parm1 == 0 && opts.parm2 == 0)
            makeTorus(opts.graphSize1, opts.graphSize2, ef);
        else
            makeTwistedTorus(opts.graphSize1, opts.graphSize2, opts.parm1, opts.parm2, ef);