[Qemu-devel] [PATCH 1/2 v2] scsi bus: introduce hotplug() and hot_unplug() interfaces for SCSI bus

Stefan Hajnoczi
2012-06-21T09:17:34Z

On Thu, Jun 21, 2012 at 8:54 AM, Cong Meng <mc at linux.vnet.ibm.com>
wrote:
> +static int scsi_qdev_unplug(DeviceState *qdev)
> +{
> + ? ?SCSIDevice *dev = SCSI_DEVICE(qdev);
> + ? ?SCSIBus *bus = scsi_bus_from_device(dev);
> +
> + ? ?if (bus->info->hot_unplug)
> + ? ? ? ?bus->info->hot_unplug(bus, dev);

Please use scripts/checkpatch.pl to ensure that your patch follows
QEMU coding style.  if statements must use {}.

Stefan