security/apparmor/label.c: Clean code by removing redundant instructions
authorMateusz Nosek <mateusznosek0@gmail.com>
Tue, 3 Mar 2020 18:30:23 +0000 (19:30 +0100)
committerJohn Johansen <john.johansen@canonical.com>
Fri, 15 May 2020 21:22:40 +0000 (14:22 -0700)
commitc84b80cd41e05395655459ecc652fa5ee05c257e
tree0077db48b63160197a00d7d4a31470b67a112135
parentfe9fd23e3b587c7ca9520717b213f88050c1d324
security/apparmor/label.c: Clean code by removing redundant instructions

Previously 'label->proxy->label' value checking
and conditional reassigning were done twice in the same function.
The second one is redundant and can be removed.

Signed-off-by: Mateusz Nosek <mateusznosek0@gmail.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
security/apparmor/label.c