[libvirt] [PATCH 1/8] Remove superfluous usage of virDomainDeviceInfoNeedsFormat

John Ferlan jferlan at redhat.com
Tue Aug 1 20:44:23 UTC 2017



On 07/26/2017 09:29 AM, Ján Tomko wrote:
> This function returns false if virDomainDeviceInfoFormat
> would not format anything.
> 
> Using it as the sole condition to decide whether to call
> virDomainDeviceInfoFormat or not is pointless, since
> the conditions are repeated in virDomainDeviceInfoFormat.
> ---
>  src/conf/domain_conf.c | 33 +++++++++++----------------------
>  1 file changed, 11 insertions(+), 22 deletions(-)
> 

Reviewed-by: John Ferlan <jferlan at redhat.com>

John

FWIW:

minor nit... In virDomainDeviceInfoFormat, there's an "info->rombar ||"
condition that could be "info->rombar != VIR_TRISTATE_SWITCH_ABSENT ||"




More information about the libvir-list mailing list