From 68272af6180395830de6dc40052f8c1dfaefb1ea Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 23 Feb 2018 21:38:31 -0500 Subject: [PATCH] translate-all: Remove unused variable in size_code_gen_buffer Also eliminates the unused parameter --- qemu/translate-all.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/qemu/translate-all.c b/qemu/translate-all.c index 8219e7fc..64b50f3e 100644 --- a/qemu/translate-all.c +++ b/qemu/translate-all.c @@ -491,10 +491,8 @@ static inline PageDesc *page_find(struct uc_struct *uc, tb_page_addr_t index) (DEFAULT_CODE_GEN_BUFFER_SIZE_1 < MAX_CODE_GEN_BUFFER_SIZE \ ? DEFAULT_CODE_GEN_BUFFER_SIZE_1 : MAX_CODE_GEN_BUFFER_SIZE) -static inline size_t size_code_gen_buffer(struct uc_struct *uc, size_t tb_size) +static inline size_t size_code_gen_buffer(size_t tb_size) { - TCGContext *tcg_ctx = uc->tcg_ctx; - /* Size the buffer. */ if (tb_size == 0) { #ifdef USE_STATIC_CODE_GEN_BUFFER @@ -780,7 +778,7 @@ static inline void code_gen_alloc(struct uc_struct *uc, size_t tb_size) { TCGContext *tcg_ctx = uc->tcg_ctx; - tcg_ctx->code_gen_buffer_size = size_code_gen_buffer(uc, tb_size); + tcg_ctx->code_gen_buffer_size = size_code_gen_buffer(tb_size); tcg_ctx->code_gen_buffer = alloc_code_gen_buffer(uc); if (tcg_ctx->code_gen_buffer == NULL) { fprintf(stderr, "Could not allocate dynamic translator buffer\n");