]> xenbits.xensource.com Git - libvirt.git/commitdiff
virDomainDeviceInfoFormat: delete outdated comments
authorJán Tomko <jtomko@redhat.com>
Tue, 27 Jun 2017 12:14:32 +0000 (14:14 +0200)
committerJán Tomko <jtomko@redhat.com>
Wed, 2 Aug 2017 13:45:52 +0000 (15:45 +0200)
This function has grown to format more than just the address.
Delete the comment completely to avoid failing to update it
in the future.

Also, the indentation is now handled by the virBuffer APIs,
so the comment about indentation no longer makes sense.

src/conf/domain_conf.c

index 0f70abd352b81c355e98ee44288ad0e50f5bd6c4..35367890c5de1c5247c2297ce2e855e83d900657 100644 (file)
@@ -5349,9 +5349,6 @@ virDomainVirtioOptionsFormat(virBufferPtr buf,
 }
 
 
-/* Generate a string representation of a device address
- * @info address Device address to stringify
- */
 static int ATTRIBUTE_NONNULL(2)
 virDomainDeviceInfoFormat(virBufferPtr buf,
                           virDomainDeviceInfoPtr info,
@@ -5400,7 +5397,6 @@ virDomainDeviceInfoFormat(virBufferPtr buf,
         info->type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_VIRTIO_S390)
         return 0;
 
-    /* We'll be in domain/devices/[device type]/ so 3 level indent */
     virBufferAsprintf(buf, "<address type='%s'",
                       virDomainDeviceAddressTypeToString(info->type));