Merge pull request #91 from mmichal10/fix-cleaning-pol-ret-val
Fix inappropriate return value when setting cleaning policy
This commit is contained in:
commit
d34942e7e5
@ -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)
|
int ocf_mngt_cache_cleaning_set_policy(ocf_cache_t cache, ocf_cleaning_t type)
|
||||||
{
|
{
|
||||||
|
|
||||||
ocf_cleaning_t old_type;
|
ocf_cleaning_t old_type;
|
||||||
int ret;
|
int ret = 0;
|
||||||
|
|
||||||
OCF_CHECK_NULL(cache);
|
OCF_CHECK_NULL(cache);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user