Minor coding style fixes
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
parent
b03fccc2fe
commit
0abb4dbbca
@ -160,8 +160,8 @@ static int _ocf_cleaning_wait_for_finish(struct ocf_cache *cache,
|
|||||||
|
|
||||||
if (cleaning_active)
|
if (cleaning_active)
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
else
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ocf_mngt_cache_put(ocf_cache_t cache)
|
void ocf_mngt_cache_put(ocf_cache_t cache)
|
||||||
|
@ -82,9 +82,8 @@ int ocf_mngt_start_trace(ocf_cache_t cache, void *trace_ctx,
|
|||||||
|
|
||||||
OCF_CHECK_NULL(cache);
|
OCF_CHECK_NULL(cache);
|
||||||
|
|
||||||
if (!trace_callback) {
|
if (!trace_callback)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
|
||||||
|
|
||||||
result = ocf_mngt_cache_lock(cache);
|
result = ocf_mngt_cache_lock(cache);
|
||||||
if (result)
|
if (result)
|
||||||
@ -150,10 +149,8 @@ int ocf_mngt_stop_trace(ocf_cache_t cache)
|
|||||||
cache->trace.trace_ctx = NULL;
|
cache->trace.trace_ctx = NULL;
|
||||||
|
|
||||||
// Poll for all ongoing traces completion
|
// Poll for all ongoing traces completion
|
||||||
while (ocf_is_trace_ongoing(cache)) {
|
while (ocf_is_trace_ongoing(cache))
|
||||||
env_msleep(20);
|
env_msleep(20);
|
||||||
}
|
|
||||||
|
|
||||||
ocf_mngt_cache_unlock(cache);
|
ocf_mngt_cache_unlock(cache);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
Reference in New Issue
Block a user