Re: [PATCH 3/6] qemu: Add qemuDomainAdjustMaxMemLock()

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

 




On 11/24/2015 08:56 AM, Andrea Bolognani wrote:
[...]

> +    }
> +
> +    /* Don't do anything unless we're actually setting a limit */
> +    if (bytes) {
> +        if (virProcessSetMaxMemLock(vm->pid, bytes) < 0)
> +            goto out;
> +    }


virProcessSetMaxMemLock aready checks:

   if (bytes == 0)
        return 0;

So the "if (bytes)" is unnecessary


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