Re: [PATCH v2 08/39] qemu_domain: Drop few useless checks in qemuDomainGetHostdevPath

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

 



On 9/26/19 12:12 PM, Michal Privoznik wrote:
> There are three cases where vir*DeviceGetPath() returns a const
> string. In these cases, the string is initialized in
> corresponding vir*DeviceNew() calls which fail if string couldn't
> be allocated. There's no point in checking the second time if the
> string is NULL.
> 
> Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
> ---
>  src/qemu/qemu_domain.c | 9 +++------
>  1 file changed, 3 insertions(+), 6 deletions(-)

Reviewed-by: Cole Robinson <crobinso@xxxxxxxxxx>

- Cole

--
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