]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuSetupHostdevCgroup: Use qemuDomainGetHostdevPath
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 9 Feb 2017 10:01:29 +0000 (11:01 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 20 Feb 2017 06:21:58 +0000 (07:21 +0100)
commit9d92f533f86b287eafa6bc1786cde3556b82a792
tree24c15fc8e637c9af36b8ad0437bcde40f70f35da
parent60ddceff8f4ef076d24ddbd0a66f35e1666e9ebe
qemuSetupHostdevCgroup: Use qemuDomainGetHostdevPath

Since these two functions are nearly identical (with
qemuSetupHostdevCgroup actually calling virCgroupAllowDevicePath)
we can have one function call the other and thus de-duplicate
some code.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
src/qemu/qemu_cgroup.c
src/qemu/qemu_domain.c
src/qemu/qemu_domain.h