]> git.proxmox.com Git - qemu.git/commitdiff
tcg: Remove unneeded assertion
authorStefan Weil <sw@weilnetz.de>
Sun, 30 Dec 2012 07:20:13 +0000 (08:20 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 2 Jan 2013 17:23:21 +0000 (11:23 -0600)
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>
tcg/tcg.c

index ede51a396083503ddc6223428d36583572bf38df..9275e372ff50bd323c61e40542bd04ab1646e9bf 100644 (file)
--- 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 {