Minor coding style fixes
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
This commit is contained in:
parent
b03fccc2fe
commit
0abb4dbbca
@ -160,7 +160,7 @@ static int _ocf_cleaning_wait_for_finish(struct ocf_cache *cache,
|
||||
|
||||
if (cleaning_active)
|
||||
return -EBUSY;
|
||||
else
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user