From 814e6fd2e610788e48aaf3e2a417d195cb26efe3 Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Sat, 15 Sep 2018 23:50:02 +0500 Subject: [PATCH] MagickCore/attribute.c: remove redundant check (#1313) atDepth is assigned "true" in line 324 --- MagickCore/attribute.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/MagickCore/attribute.c b/MagickCore/attribute.c index 989b8fd80..773078a78 100644 --- a/MagickCore/attribute.c +++ b/MagickCore/attribute.c @@ -323,8 +323,7 @@ MagickExport size_t GetImageDepth(const Image *image,ExceptionInfo *exception) atDepth=MagickTrue; range=GetQuantumRange(current_depth[id]); - if ((atDepth != MagickFalse) && - (GetPixelRedTraits(image) & UpdatePixelTrait) != 0) + if ((GetPixelRedTraits(image) & UpdatePixelTrait) != 0) if (IsPixelAtDepth(ClampToQuantum(image->colormap[i].red),range) == MagickFalse) atDepth=MagickFalse; if ((atDepth != MagickFalse) && -- 2.40.0