From: Aleksey Demakov Date: Wed, 3 Oct 2012 23:21:33 +0000 (+0400) Subject: Minor reformatting in jit-apply.c. X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=f2866031dcf4867d42f094d5c4c9a5ec8af9b166;p=francis%2Flibjit.git Minor reformatting in jit-apply.c. --- diff --git a/jit/jit-apply.c b/jit/jit-apply.c index d8e4ac8..78e3ca3 100644 --- a/jit/jit-apply.c +++ b/jit/jit-apply.c @@ -883,20 +883,20 @@ jit_closure_create(jit_context_t context, jit_type_t signature, jit_closure_func } /* Acquire the cache lock while we do this */ - jit_mutex_lock(&(context->cache_lock)); - + jit_mutex_lock(&context->cache_lock); + /* Allocate space for the closure within the context's function cache */ cache = _jit_context_get_cache(context); if(!cache) { - jit_mutex_unlock(&(context->cache_lock)); + jit_mutex_unlock(&context->cache_lock); return 0; } - closure = (jit_closure_t)_jit_cache_alloc_no_method - (cache, sizeof(struct jit_closure), jit_closure_align); + + closure = (jit_closure_t)_jit_cache_alloc_no_method(cache, sizeof(struct jit_closure), jit_closure_align); if(!closure) { - jit_mutex_unlock(&(context->cache_lock)); + jit_mutex_unlock(&context->cache_lock); return 0; } @@ -910,7 +910,7 @@ jit_closure_create(jit_context_t context, jit_type_t signature, jit_closure_func jit_flush_exec(closure->buf, sizeof(closure->buf)); /* Unlock the cache, as we are finished with it */ - jit_mutex_unlock(&(context->cache_lock)); + jit_mutex_unlock(&context->cache_lock); /* Return the completed closure to the caller */ return closure;