tcg: Remove unneeded assertion
PATCH 1/1 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.
Signed-off-by Stefan Weil <[email protected]>
--- tcg/tcg.c | 1 - 1 file changed, 1 deletion(-)
tcg/tcg.c +0 -1
@@ -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 {
Signature · 1 line
1.7.10.4
Quoted 7 lines · Stefan Weil
Commit
7f6f0ae5b95adfa76e10eabe2c34424a955fd10cadded 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.Signed-off-by Stefan Weil <[email protected]>
Reviewed-by Richard Henderson <[email protected]>
r~
Anthony Liguori
AppliedThanks, applied.
Regards,
Anthony Liguori