Merge pull request #147 from robertbaldyga/fix-compilation-error-int-const-bool-context

Fix compilation error
This commit is contained in:
Michal Rakowski 2019-05-09 12:57:44 +02:00 committed by GitHub
commit 78fea63178
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -595,8 +595,8 @@ static void ocf_mngt_cache_remove_core_flush_sb_complete(void *priv, int error)
{
struct ocf_mngt_cache_remove_core_context *context = priv;
OCF_PL_NEXT_ON_SUCCESS_RET(context->pipeline,
error ? -OCF_ERR_WRITE_CACHE : 0);
error = error ? -OCF_ERR_WRITE_CACHE : 0;
OCF_PL_NEXT_ON_SUCCESS_RET(context->pipeline, error);
}
static void _ocf_mngt_cache_remove_core(ocf_pipeline_t pipeline, void *priv,