summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2023-05-10 15:38:08 +0100
committerRobin Watts <Robin.Watts@artifex.com>2023-05-10 15:38:08 +0100
commitd9162e337a7e6c3603700b42e37eb9aaaff69bf0 (patch)
tree076db03b4695b1bfc02f874bb3dfc149587406cc
parent41d94954baf3baa95e0f60904a253a7776eabedd (diff)
downloadghostpdl-d9162e337a7e6c3603700b42e37eb9aaaff69bf0.tar.gz
Coverity 384816: Remove logically dead code in tifftop.c
"planar" can either be PLANAR_CONTIG or PLANAR_SEPARATE. We've checked for PLANAR_CONTIG earlier, so no point in checking we're not PLANAR_SEPARATE later.
-rw-r--r--gpdl/tifftop.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gpdl/tifftop.c b/gpdl/tifftop.c
index 4321eb45e..584c3b58a 100644
--- a/gpdl/tifftop.c
+++ b/gpdl/tifftop.c
@@ -1022,8 +1022,6 @@ do_tiff_decode(tiff_interp_instance_t *tiff)
} else {
int span = tiff->raw_byte_width;
byte *in_row = tiff->samples;
- if (planar != PLANARCONFIG_SEPARATE)
- span /= tiff->raw_num_comps;
row = tiff->proc_samples;
for (s = 0; s < tiff->raw_num_comps; s++) {
plane_data[s].data = row;