Remove unnecessary handle parameter
[platform/core/multimedia/libmedia-service.git] / src / common / media-svc.c
index 33a2a2f..a78f53f 100755 (executable)
@@ -566,16 +566,9 @@ int media_svc_publish_noti(media_item_update_type_e update_type, const char *pat
        return _media_svc_publish_noti(update_type, path, media_type, uuid, mime_type);
 }
 
-int media_svc_set_storage_validity(sqlite3 *handle, const char *storage_id, int validity, uid_t uid)
+int media_svc_set_storage_validity(const char *storage_id, int validity, uid_t uid)
 {
-       int ret = MS_MEDIA_ERR_NONE;
-
-       media_svc_retvm_if(handle == NULL, MS_MEDIA_ERR_INVALID_PARAMETER, "Handle is NULL");
-
-       ret = _media_svc_update_storage_validity(storage_id, validity, uid);
-       media_svc_retvm_if(ret != MS_MEDIA_ERR_NONE, ret, "update storage validity failed: %d", ret);
-
-       return ret;
+       return _media_svc_update_storage_validity(storage_id, validity, uid);
 }
 
 int media_svc_get_storage_id(sqlite3 *handle, const char *path, char *storage_id, uid_t uid)