Re: [Qemu-devel] [PATCH 1/2] virtio: Remove unnecessary OBJECT casts

2013-08-23 Thread Andreas Färber
Am 23.08.2013 15:38, schrieb Peter Maydell: > There's no need to cast the first argument of object_initialize > to Object, and it would defeat the ability to check that the > pointer being passed is to a type large enough for the object. > Remove these unnecessary casts. > > Signed-off-by: Peter M

[Qemu-devel] [PATCH 1/2] virtio: Remove unnecessary OBJECT casts

2013-08-23 Thread Peter Maydell
There's no need to cast the first argument of object_initialize to Object, and it would defeat the ability to check that the pointer being passed is to a type large enough for the object. Remove these unnecessary casts. Signed-off-by: Peter Maydell --- hw/s390x/s390-virtio-bus.c | 12 ++---