code cleanup: remove paranoid NULL checks (these cases would crash earlier of the...
[blender.git] / source / blender / imbuf / intern / targa.c
index 4df49386ce1cec8e72e94aeb42211acbafba0e62..2f7452772ef1ea4bcaaea9c47cd2519cce84a10d 100644 (file)
@@ -682,9 +682,11 @@ ImBuf *imb_loadtarga(unsigned char *mem, size_t mem_size, int flags)
                }
        }
        
-       if (tga.imgdes & 0x20) IMB_flipy(ibuf);
+       if (tga.imgdes & 0x20) {
+               IMB_flipy(ibuf);
+       }
 
-       if (ibuf && ibuf->rect)
+       if (ibuf->rect)
                IMB_convert_rgba_to_abgr(ibuf);
        
        return(ibuf);