From 17c46a0fb7291a27d4adfd31fb035499dd93ae1c Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 29 Aug 2021 17:01:19 -0700 Subject: [PATCH] firstlayer: remove unnecessary bracketing --- lib/common/emit.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/common/emit.c b/lib/common/emit.c index f0554030d..b89054218 100644 --- a/lib/common/emit.c +++ b/lib/common/emit.c @@ -1226,7 +1226,7 @@ static void firstlayer(GVJ_t *job, int** listp) if (job->gvc->layerlist) { int *list = job->gvc->layerlist; int cnt = *list++; - if ((cnt > 1) && (! (job->flags & GVDEVICE_DOES_LAYERS))) { + if (cnt > 1 && !(job->flags & GVDEVICE_DOES_LAYERS)) { agerr(AGWARN, "layers not supported in %s output\n", job->output_langname); list[1] = job->numLayers + 1; /* only one layer printed */ @@ -1235,8 +1235,7 @@ static void firstlayer(GVJ_t *job, int** listp) *listp = list; } else { - if ((job->numLayers > 1) - && (! (job->flags & GVDEVICE_DOES_LAYERS))) { + if (job->numLayers > 1 && !(job->flags & GVDEVICE_DOES_LAYERS)) { agerr(AGWARN, "layers not supported in %s output\n", job->output_langname); job->numLayers = 1; -- 2.40.0