]> granicus.if.org Git - graphviz/commitdiff
gvc: [nfc] remove unnecessary parens around use of 'write_fn'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 26 Feb 2022 22:01:18 +0000 (14:01 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 6 Mar 2022 04:06:47 +0000 (20:06 -0800)
lib/gvc/gvdevice.c

index e58814b91b4b32741e673c2059392d94563f7dac..7260cf8832bc8dd796952fe4fd645c820930a472 100644 (file)
@@ -61,7 +61,7 @@ static const int PAGE_ALIGN = 4095;           /* align to a 4K boundary (less one), typic
 
 static size_t gvwrite_no_z(GVJ_t * job, const void *s, size_t len) {
     if (job->gvc->write_fn)   /* externally provided write discipline */
-       return (job->gvc->write_fn)(job, s, len);
+       return job->gvc->write_fn(job, s, len);
     if (job->output_data) {
        if (len > job->output_data_allocated - (job->output_data_position + 1)) {
            /* ensure enough allocation for string = null terminator */