From 933415d3d94f749ba6f6b272d01d7d09747bac53 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 26 Feb 2022 14:16:26 -0800 Subject: [PATCH] gvc: [nfc] remove parens around return value style This is an idiom occasionally used to allow defining `return` as a macro that does some additional instrumentation. This style has mostly fallen out of favor, with mechanisms like `-finstrument-functions` instead used as a more robust way of achieving the same thing. --- lib/gvc/gvdevice.c | 6 +++--- lib/gvc/gvevent.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/gvc/gvdevice.c b/lib/gvc/gvdevice.c index 7260cf883..626d47991 100644 --- a/lib/gvc/gvdevice.c +++ b/lib/gvc/gvdevice.c @@ -145,7 +145,7 @@ int gvdevice_initialize(GVJ_t * job) job->common->errorfn("Could not open \"%s\" for writing : %s\n", job->output_filename, strerror(errno)); /* perror(job->output_filename); */ - return(1); + return 1; } } else @@ -178,12 +178,12 @@ int gvdevice_initialize(GVJ_t * job) if (deflateInit2(z, Z_DEFAULT_COMPRESSION, Z_DEFLATED, -MAX_WBITS, MAX_MEM_LEVEL, Z_DEFAULT_STRATEGY) != Z_OK) { job->common->errorfn("Error initializing for deflation\n"); - return(1); + return 1; } gvwrite_no_z(job, z_file_header, sizeof(z_file_header)); #else job->common->errorfn("No libz support.\n"); - return(1); + return 1; #endif } return 0; diff --git a/lib/gvc/gvevent.c b/lib/gvc/gvevent.c index 4c8df09dc..aa095a964 100644 --- a/lib/gvc/gvevent.c +++ b/lib/gvc/gvevent.c @@ -184,7 +184,7 @@ static graph_t *gvevent_find_cluster(graph_t *g, boxf b) for (i = 1; i <= GD_n_cluster(g); i++) { sg = gvevent_find_cluster(GD_clust(g)[i], b); if (sg) - return(sg); + return sg; } B2BF(GD_bb(g), bb); if (OVERLAP(b, bb)) -- 2.40.0