Re: [Qemu-devel] [PATCH] scsi: Remove SCSI_BUS macro

2012-11-27 Thread Paolo Bonzini
Il 27/11/2012 06:37, Lei Li ha scritto: > As step behind Paolo's fix for RHBZ#879657 and according to the current > fix in Commit b5007bc (hmp: do not crash on invalid SCSI hotplug), the > macro SCSI_BUS has already been replaced to object_dynamic_cast which > has been improved when try to cast to

[Qemu-devel] [PATCH] scsi: Remove SCSI_BUS macro

2012-11-26 Thread Lei Li
As step behind Paolo's fix for RHBZ#879657 and according to the current fix in Commit b5007bc (hmp: do not crash on invalid SCSI hotplug), the macro SCSI_BUS has already been replaced to object_dynamic_cast which has been improved when try to cast to NULL value and it is also what DO_UPCAST macro d