hw/display/sm501: Remove unneeded increment from loop
commit1b336bb63e6fa6e3bc343b19725e09a55adc17b1
authorBALATON Zoltan <balaton@eik.bme.hu>
Wed, 5 Apr 2023 15:57:19 +0000 (5 17:57 +0200)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Fri, 5 May 2023 15:34:22 +0000 (5 12:34 -0300)
tree0a2d178dd2ceac12cfd591599e2c471c02a115d6
parenta9fe9e191b4305b88c356a1ed9ac3baf89eb18aa
hw/display/sm501: Remove unneeded increment from loop

As Coverity points out (CID 1508621) the calculation to increment i in
the fill fallback loop is ineffective as it is overwritten in next
statement. This was left there by mistake from a previous version but
is not needed in the current approach so remove the superfluous
increment statement.

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20230405161234.6EF0A74633D@zero.eik.bme.hu>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
hw/display/sm501.c