From: Dirk Lemstra Date: Fri, 29 Sep 2017 08:01:11 +0000 (+0200) Subject: Removed unnecessary null check. X-Git-Tag: 7.0.7-5~43 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=79ef28a6cec2bd340082013b89762c29cf0ad139;p=imagemagick Removed unnecessary null check. --- diff --git a/MagickCore/cache.c b/MagickCore/cache.c index 1c51e4e82..0d046dbdc 100644 --- a/MagickCore/cache.c +++ b/MagickCore/cache.c @@ -411,8 +411,6 @@ MagickPrivate Cache ClonePixelCache(const Cache cache) (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s", cache_info->filename); clone_info=(CacheInfo *) AcquirePixelCache(cache_info->number_threads); - if (clone_info == (Cache) NULL) - return((Cache) NULL); clone_info->virtual_pixel_method=cache_info->virtual_pixel_method; return((Cache ) clone_info); }