On 09/10/2018 05:36 AM, Michal Privoznik wrote:
> Firstly, the following code pattern is harder to follow:
>
> if (func() < 0) {
> error();
> } else {
> /* success */
> }
>
> We should put 'goto cleanup' into the error branch and move the
> else branch one level up.
> Secondly, 'rc' should really be named 'ret' because it holds
> return value of the function. Not some intermediate value.
>
> Signed-off-by: Michal Privoznik <[email protected]>
> ---
> src/security/security_selinux.c | 13 ++++++++-----
> 1 file changed, 8 insertions(+), 5 deletions(-)
>
Reviewed-by: John Ferlan <[email protected]>
John
can't wait to see the selinux patches for this list stuff... Oh boy!
Getting punchy, must be closer to dinner...
--
libvir-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libvir-list
- [libvirt] [PATCH v4 08/23] lock_driver: Introduce new VIR... Michal Privoznik
- [libvirt] [PATCH v4 10/23] lock_driver: Introduce VIR_LOC... Michal Privoznik
- [libvirt] [PATCH v4 06/23] virlockspace: Allow caller to ... Michal Privoznik
- [libvirt] [PATCH v4 09/23] _virLockManagerLockDaemonPriva... Michal Privoznik
- [libvirt] [PATCH v4 22/23] security_selinux: Move transac... Michal Privoznik
- [libvirt] [PATCH v4 21/23] virSecuritySELinuxRestoreFileL... Michal Privoznik
- Re: [libvirt] [PATCH v4 21/23] virSecuritySELinuxRes... John Ferlan
- [libvirt] [PATCH v4 19/23] security_dac: Lock metadata wh... Michal Privoznik
- [libvirt] [PATCH v4 14/23] qemu_conf: Introduce metadata_... Michal Privoznik
- [libvirt] [PATCH v4 23/23] security_dac: Lock metadata wh... Michal Privoznik
- [libvirt] [PATCH v4 13/23] lock_manager: Allow disabling ... Michal Privoznik
- [libvirt] [PATCH v4 11/23] lock_driver: Introduce VIR_LOC... Michal Privoznik
- [libvirt] [PATCH v4 20/23] virSecuritySELinuxRestoreFileL... Michal Privoznik
