From c19847d27950680e3afb95e9953a3d0a4cecdf14 Mon Sep 17 00:00:00 2001
From: Robin Watts <robin.watts@artifex.com>
Date: Mon, 7 Aug 2017 16:43:36 +0100
Subject: Remove unnecessary conditional.

The conditional is always == 255 here.
---
 source/fitz/draw-paint.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'source')

diff --git a/source/fitz/draw-paint.c b/source/fitz/draw-paint.c
index e59b93fc..8357d5a1 100644
--- a/source/fitz/draw-paint.c
+++ b/source/fitz/draw-paint.c
@@ -1308,7 +1308,7 @@ template_span_3_general(byte * restrict dp, int da, const byte * restrict sp, in
 					dp[1] = sp[1];
 					dp[2] = sp[2];
 					if (da)
-						dp[3] = (sa ? sp[3] : 255);
+						dp[3] = 255;
 				}
 				dp += 3+da; sp += 3+sa;
 			}
-- 
cgit v1.2.3