]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd81ef80ac01176fee3d2035781aecd18f9513ae3
tree0077db48b63160197a00d7d4a31470b67a112135
parentf4ff7bb453811934e4c9e95d3ee20c664f3a8f2a
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