Re: [PATCH v4 3/9] util: Management routines for scsi_host devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[...]

> +
> +/* For virReportOOMError()  and virReportSystemError() */
> +#define VIR_FROM_THIS VIR_FROM_NONE
> +

Made a minor adjustment to move this above the VIR_LOG_INIT - it's just
cosmetic...

[...]

> +virSCSIVHostDevicePtr
> +virSCSIVHostDeviceNew(const char *name)
> +{
> +    virSCSIVHostDevicePtr dev;
> +
> +    if (VIR_ALLOC(dev) < 0)
> +        return NULL;
> +
> +    if (VIR_STRDUP(dev->name, name) < 0) {
> +        virReportError(VIR_ERR_INTERNAL_ERROR,
> +                       _("dev->name buffer overflow: %s"),
> +                       name);
> +        goto error;
> +    }
> +
> +    if (virAsprintf(&dev->path, "%s/%s",
> +                    SYSFS_VHOST_SCSI_DEVICES, name) < 0)
> +        goto cleanup;

I believe this is goto error;  (I can change before push)

ACK

John

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux