Use error type directly 53/305553/3
authorminje.ahn <minje.ahn@samsung.com>
Mon, 5 Feb 2024 03:33:44 +0000 (12:33 +0900)
committerminje.ahn <minje.ahn@samsung.com>
Mon, 5 Feb 2024 04:34:45 +0000 (13:34 +0900)
No need convert error type.

Change-Id: Icf71594d7539663fb28ad0e346202044320e85e7
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
src/media_content.c

index 2bb5458..9e33533 100644 (file)
@@ -353,7 +353,7 @@ int media_content_scan_folder(const char *path, bool is_recursive, media_scan_co
                /* Or, it is real invalid path.. check storage type */
                if (!ms_user_is_valid_path(_content_get_uid(), path)) {
                        content_sec_error("ms_user_is_valid_path failed : %d (%s)", ret, path);
-                       return _content_error_capi(ret);
+                       return MEDIA_CONTENT_ERROR_INVALID_PARAMETER;
                }
 
                content_debug("This path doesn't exists in file system... So will be deleted it from DB");