sm501: Fix warning about unreachable code
commit6730df0514d3aec35e646ff9833fbe8b05fd0776
authorBALATON Zoltan <balaton@eik.bme.hu>
Sun, 15 Jul 2018 20:59:21 +0000 (15 22:59 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 16 Jul 2018 01:19:10 +0000 (16 11:19 +1000)
treebc4e9512feb90437e733ed21968597cd7e48bff6
parent3cc702d6aad603fdbe0c83db0bf803e450a6d0b8
sm501: Fix warning about unreachable code

Coverity warned that the false arm of conditional expression is
unreachable when it is inside an if with the same condition.
Remove the unreachable code to avoid the warning.

Fixes: CID 1394215
Reported-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/display/sm501.c