]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_cgroup: Avoid ternary operator when setting @deviceACL
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 21 Jul 2022 10:23:53 +0000 (12:23 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 21 Jul 2022 12:45:50 +0000 (14:45 +0200)
commit086bbbad0946f13833f4136cba9ad4c13ae69ae4
treeb1d5887301d6057cc4ca8405cf214378f864c7fc
parent2103807e330487952f423d86f541a7a28e003e95
qemu_cgroup: Avoid ternary operator when setting @deviceACL

Inside of the qemuSetupDevicesCgroup() there's @deviceACL
variable, which points to a string list of devices that are
allowed in devices controller by default. This list can either
come from qemu.conf (cfg->cgroupDeviceACL) or from a builtin
@defaultDeviceACL. However, a multiline ternary operator is used
when setting the variable which is against our coding style.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/qemu/qemu_cgroup.c