Fix inappropriate return value when setting cleaning policy
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
parent
40f1e9e0d3
commit
05be94f7e5
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user