Fix inappropriate return value when setting cleaning policy

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
Michal Mielewczyk 2019-03-29 10:45:45 -04:00
parent 40f1e9e0d3
commit 05be94f7e5

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);