Fix Coverity issue
[platform/core/uifw/dali-adaptor.git] / dali / internal / imaging / common / gif-loading.cpp
index a6793f2..16057f7 100644 (file)
@@ -494,10 +494,6 @@ bool DecodeImage( GifFileType *gif, uint32_t *data, int rowpix, int xin, int yin
   // what we need is image size.
   SavedImage *sp;
   sp = &gif->SavedImages[ gif->ImageCount - 1 ];
-  if( !sp )
-  {
-    goto on_error;
-  }
 
   gifW = sp->ImageDesc.Width;
   gifH = sp->ImageDesc.Height;