Remove unnecessary variables for function return value

Re-run Coccinelle script scripts/coccinelle/return_directly.cocci

Signed-off-by: Laurent Vivier <lvivier@redhat.com>
ppc part
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
Laurent Vivier 2018-03-23 15:32:02 +01:00 committed by Michael Tokarev
parent f23c81073a
commit 4a4ff4c58f
20 changed files with 79 additions and 248 deletions

View file

@ -644,11 +644,8 @@ static inline void *alloc_code_gen_buffer(void)
static inline void *alloc_code_gen_buffer(void)
{
size_t size = tcg_ctx->code_gen_buffer_size;
void *buf;
buf = VirtualAlloc(NULL, size, MEM_RESERVE | MEM_COMMIT,
return VirtualAlloc(NULL, size, MEM_RESERVE | MEM_COMMIT,
PAGE_EXECUTE_READWRITE);
return buf;
}
#else
static inline void *alloc_code_gen_buffer(void)