OSDN Git Service

hw/display/tcx: Remove superfluous OBJECT() typecasts
authorThomas Huth <thuth@redhat.com>
Thu, 15 Oct 2015 08:54:15 +0000 (10:54 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 6 Nov 2015 12:42:38 +0000 (15:42 +0300)
commitb21de19992cefdfef68217e50a8365ee5e535e10
tree62bb709ac1e29278205f17edd21bd0507f12e216
parent5accecb3a6b49d8ca79684179610583e9c7c1bf5
hw/display/tcx: Remove superfluous OBJECT() typecasts

The tcx_initfn() function is already supplied with an
Object *obj pointer, so there is no need to cast the
state pointer back to an Object pointer all over the
place. And while we're at it, also remove the superfluous
"return;" statement in this function.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Acked-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/display/tcx.c