Remove void return and null check 73/227973/1
authorjiyong.min <jiyong.min@samsung.com>
Wed, 18 Mar 2020 00:29:26 +0000 (09:29 +0900)
committerjiyong.min <jiyong.min@samsung.com>
Wed, 18 Mar 2020 00:29:26 +0000 (09:29 +0900)
Change-Id: I2352805413ea9c0ecb1512935b6c1649c65b44de

magick/mm_util_magick.c

index 7f5df56..2faf917 100644 (file)
@@ -72,28 +72,19 @@ static void __mm_util_init(ExceptionInfo *exception)
        SetErrorHandler(__mm_util_magick_error_handler);
        SetFatalErrorHandler(__mm_util_magick_error_handler);
        SetWarningHandler(__mm_util_magick_error_handler);
-
-       return;
 }
 
 static void __mm_util_finalize(Image *image_1, Image *image_2, ImageInfo *imageInfo, ExceptionInfo *exception)
 {
 
-       if (image_1 != NULL)
-               DestroyImage(image_1);
-
-       if (image_2 != NULL)
-               DestroyImage(image_2);
-
-       if (imageInfo != NULL)
-               DestroyImageInfo(imageInfo);
+       DestroyImage(image_1);
+       DestroyImage(image_2);
+       DestroyImageInfo(imageInfo);
 
        if (exception != NULL)
                DestroyExceptionInfo(exception);
 
        DestroyMagick();
-
-       return;
 }
 
 static int __mm_util_get_map(mm_util_color_format_e format, char **map)