summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2012-12-30 08:20:13 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2013-01-02 11:23:21 -0600
commit9a8a5ae69d3a436e51a7eb2edafe254572f60823 (patch)
tree9b2cb4eaf934e4d097713ca3eb8bd2c52a97acc5
parent34daffa04886444dafd4a6951167225e824003d0 (diff)
downloadqemu-9a8a5ae69d3a436e51a7eb2edafe254572f60823.tar.gz
qemu-9a8a5ae69d3a436e51a7eb2edafe254572f60823.tar.bz2
qemu-9a8a5ae69d3a436e51a7eb2edafe254572f60823.zip
tcg: Remove unneeded assertion
Commit 7f6f0ae5b95adfa76e10eabe2c34424a955fd10c added two assertions. One of these assertions is not needed: The pointer ts is never NULL because it is initialized with the address of an array element. Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--tcg/tcg.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/tcg/tcg.c b/tcg/tcg.c
index ede51a3960..9275e372ff 100644
--- a/tcg/tcg.c
+++ b/tcg/tcg.c
@@ -800,7 +800,6 @@ static char *tcg_get_arg_str_idx(TCGContext *s, char *buf, int buf_size,
assert(idx >= 0 && idx < s->nb_temps);
ts = &s->temps[idx];
- assert(ts);
if (idx < s->nb_globals) {
pstrcpy(buf, buf_size, ts->name);
} else {