Minor coding style fixes

Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
Robert Baldyga 2019-01-18 10:16:17 +01:00
parent b03fccc2fe
commit 0abb4dbbca
2 changed files with 4 additions and 7 deletions

View File

@ -160,8 +160,8 @@ static int _ocf_cleaning_wait_for_finish(struct ocf_cache *cache,
if (cleaning_active)
return -EBUSY;
else
return 0;
return 0;
}
void ocf_mngt_cache_put(ocf_cache_t cache)

View File

@ -82,9 +82,8 @@ int ocf_mngt_start_trace(ocf_cache_t cache, void *trace_ctx,
OCF_CHECK_NULL(cache);
if (!trace_callback) {
if (!trace_callback)
return -EINVAL;
}
result = ocf_mngt_cache_lock(cache);
if (result)
@ -150,10 +149,8 @@ int ocf_mngt_stop_trace(ocf_cache_t cache)
cache->trace.trace_ctx = NULL;
// Poll for all ongoing traces completion
while (ocf_is_trace_ongoing(cache)) {
while (ocf_is_trace_ongoing(cache))
env_msleep(20);
}
ocf_mngt_cache_unlock(cache);
return result;