{
int err = MS_MEDIA_ERR_NONE;
int exist = -1;
+ ms_user_storage_type_e storage_type = -1;
MSAPI_RETVM_IF(!MS_STRING_VALID(path), MS_MEDIA_ERR_INVALID_PARAMETER, "Invalid path");
}
close(exist);
- ms_user_storage_type_e storage_type = -1;
- storage_type = ms_user_get_storage_type(uid, path, &storage_type);
+ ms_user_get_storage_type(uid, path, &storage_type);
if ((storage_type != MS_USER_STORAGE_INTERNAL) && (storage_type != MS_USER_STORAGE_EXTERNAL)) {
MSAPI_DBG_ERR("The path(%s) is invalid", path);