summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorAlfonso Gregory <83477269+AtariDreams@users.noreply.github.com>2021-08-30 12:23:00 -0400
committerAlfonso Gregory <83477269+AtariDreams@users.noreply.github.com>2021-09-07 11:55:17 -0400
commitbaa764fab09e72e667dc31c9397094627eda1913 (patch)
treed24e59172d1a41a568b15dc8716ebab18755df90 /filter
parentfd5021277412ed47e9b4fa344396119c25f47ce6 (diff)
downloadcups-baa764fab09e72e667dc31c9397094627eda1913.tar.gz
Remove redundant code
Diffstat (limited to 'filter')
-rw-r--r--filter/common.c2
-rw-r--r--filter/rastertohp.c3
2 files changed, 2 insertions, 3 deletions
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...