From: John Johansen Date: Tue, 1 Aug 2017 06:44:37 +0000 (-0700) Subject: apparmor: Redundant condition: prev_ns. in [label.c:1498] X-Git-Tag: v5.15~10353^2~13 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=c5561700c9cb951ec3a33a0914c840423b09d7c9;p=mirror_ubuntu-kernels.git apparmor: Redundant condition: prev_ns. in [label.c:1498] Reported-by: David Binderman Signed-off-by: John Johansen --- diff --git a/security/apparmor/label.c b/security/apparmor/label.c index e052eaba1cf6..e324f4df3e34 100644 --- a/security/apparmor/label.c +++ b/security/apparmor/label.c @@ -1495,7 +1495,7 @@ static int aa_profile_snxprint(char *str, size_t size, struct aa_ns *view, view = profiles_ns(profile); if (view != profile->ns && - (!prev_ns || (prev_ns && *prev_ns != profile->ns))) { + (!prev_ns || (*prev_ns != profile->ns))) { if (prev_ns) *prev_ns = profile->ns; ns_name = aa_ns_name(view, profile->ns,