From 2c95bf085f8f6d5776c1b167f29c2e3a9764c3aa Mon Sep 17 00:00:00 2001 From: Haejeong Kim Date: Wed, 27 Sep 2017 11:28:10 +0900 Subject: [PATCH] Apply tizen coding rule Change-Id: I5fba0b54ab09e643c9a4031ec310986df8bdf9dd --- src/image_util_private.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/image_util_private.c b/src/image_util_private.c index 185c844..1ddb240 100755 --- a/src/image_util_private.c +++ b/src/image_util_private.c @@ -148,9 +148,8 @@ gboolean is_supported_colorspace(image_util_colorspace_e colorspace, image_util_ int convert_type_of_colorspace(const image_util_colorspace_e colorspace) { - if (is_valid_colorspace(colorspace) == FALSE) { + if (is_valid_colorspace(colorspace) == FALSE) return _NOT_SUPPORTED_COLORSPACE; - } return _convert_colorspace_tbl[colorspace]; } @@ -159,13 +158,11 @@ int convert_type_of_colorspace_with_image_type(const image_util_colorspace_e col { int new_colorspace = _NOT_SUPPORTED_COLORSPACE; - if (is_valid_colorspace(colorspace) == FALSE) { + if (is_valid_colorspace(colorspace) == FALSE) return _NOT_SUPPORTED_COLORSPACE; - } - if (is_supported_colorspace(colorspace, type) == FALSE) { + if (is_supported_colorspace(colorspace, type) == FALSE) return _NOT_SUPPORTED_COLORSPACE; - } switch (type) { case IMAGE_UTIL_JPEG: -- 2.7.4