Remove unused OCF_ERR_CACHE_IN_USE error code

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
Robert Baldyga
2019-05-22 11:09:02 +02:00
parent 8a82be339f
commit 46ae8b2ff1
4 changed files with 1 additions and 13 deletions

View File

@@ -270,14 +270,8 @@ static void _ocf_mngt_cache_unlock(ocf_cache_t cache,
int ocf_mngt_cache_lock_init(ocf_cache_t cache)
{
int result;
result = ocf_async_lock_init(&cache->lock,
return ocf_async_lock_init(&cache->lock,
sizeof(struct ocf_mngt_cache_lock_context));
if (result)
return result;
return 0;
}
void ocf_mngt_cache_lock_deinit(ocf_cache_t cache)