Patchwork [4/4] tcg: Remove unused parameter from tcg_target_get_call_iarg_regs_count

login
register
mail settings
Submitter Stefan Weil
Date Sept. 12, 2012, 8:44 p.m.
Message ID <1347482678-9458-5-git-send-email-sw@weilnetz.de>
Download mbox | patch
Permalink /patch/183430/
State Superseded
Headers show

Comments

Stefan Weil - Sept. 12, 2012, 8:44 p.m.
Since commit 6a18ae2d2947532d5c26439548afa0481c4529f9,
'flags' is no longer used in tcg_target_get_call_iarg_regs_count.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
---
 tcg/tcg.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/tcg/tcg.c b/tcg/tcg.c
index 53316f6..0f0a8d0 100644
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -182,7 +182,7 @@  int gen_new_label(void)
 #include "tcg-target.c"
 
 /* Maximum number of register used for input function arguments. */
-static inline int tcg_target_get_call_iarg_regs_count(int flags)
+static inline int tcg_target_get_call_iarg_regs_count(void)
 {
     return ARRAY_SIZE(tcg_target_call_iarg_regs);
 }
@@ -1871,7 +1871,7 @@  static int tcg_reg_alloc_call(TCGContext *s, const TCGOpDef *def,
 
     flags = args[nb_oargs + nb_iargs];
 
-    nb_regs = tcg_target_get_call_iarg_regs_count(flags);
+    nb_regs = tcg_target_get_call_iarg_regs_count();
     if (nb_regs > nb_params)
         nb_regs = nb_params;