From baa764fab09e72e667dc31c9397094627eda1913 Mon Sep 17 00:00:00 2001 From: Alfonso Gregory <83477269+AtariDreams@users.noreply.github.com> Date: Mon, 30 Aug 2021 12:23:00 -0400 Subject: Remove redundant code --- filter/common.c | 2 +- filter/rastertohp.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'filter') diff --git a/filter/common.c b/filter/common.c index 672b7c8cd..e0cbcd384 100644 --- a/filter/common.c +++ b/filter/common.c @@ -301,7 +301,7 @@ WriteLabelProlog(const char *label, /* I - Page label */ if ((classification = getenv("CLASSIFICATION")) == NULL) classification = ""; - if (strcmp(classification, "none") == 0) + else if (strcmp(classification, "none") == 0) classification = ""; /* diff --git a/filter/rastertohp.c b/filter/rastertohp.c index 0d76c42a2..5f7fa1ba9 100644 --- a/filter/rastertohp.c +++ b/filter/rastertohp.c @@ -813,8 +813,7 @@ main(int argc, /* I - Number of command-line arguments */ Shutdown(); - if (ppd) - ppdClose(ppd); + ppdClose(ppd); /* * Close the raster stream... -- cgit v1.2.1