mirror of https://github.com/xemu-project/xemu.git
tcg: Remove unneeded assertion
Commit 7f6f0ae5b9
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>
This commit is contained in:
parent
34daffa048
commit
9a8a5ae69d
|
@ -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);
|
assert(idx >= 0 && idx < s->nb_temps);
|
||||||
ts = &s->temps[idx];
|
ts = &s->temps[idx];
|
||||||
assert(ts);
|
|
||||||
if (idx < s->nb_globals) {
|
if (idx < s->nb_globals) {
|
||||||
pstrcpy(buf, buf_size, ts->name);
|
pstrcpy(buf, buf_size, ts->name);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue