Merge pull request #91 from mmichal10/fix-cleaning-pol-ret-val

Fix inappropriate return value when setting cleaning policy
This commit is contained in:
Adam Rutkowski 2019-03-29 15:53:21 +01:00 committed by GitHub
commit d34942e7e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -937,9 +937,8 @@ void ocf_mngt_cache_flush_interrupt(ocf_cache_t cache)
int ocf_mngt_cache_cleaning_set_policy(ocf_cache_t cache, ocf_cleaning_t type)
{
ocf_cleaning_t old_type;
int ret;
int ret = 0;
OCF_CHECK_NULL(cache);