diff options
author | John Johansen <john.johansen@canonical.com> | 2017-08-01 02:44:37 -0400 |
---|---|---|
committer | John Johansen <john.johansen@canonical.com> | 2017-09-22 16:00:57 -0400 |
commit | c5561700c9cb951ec3a33a0914c840423b09d7c9 (patch) | |
tree | fc10e10d924db529f78b32376ab5d26f3997a5e0 | |
parent | 5d314a81eca29b01939930c1c596dfa44937e970 (diff) |
apparmor: Redundant condition: prev_ns. in [label.c:1498]
Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
-rw-r--r-- | security/apparmor/label.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
1495 | view = profiles_ns(profile); | 1495 | view = profiles_ns(profile); |
1496 | 1496 | ||
1497 | if (view != profile->ns && | 1497 | if (view != profile->ns && |
1498 | (!prev_ns || (prev_ns && *prev_ns != profile->ns))) { | 1498 | (!prev_ns || (*prev_ns != profile->ns))) { |
1499 | if (prev_ns) | 1499 | if (prev_ns) |
1500 | *prev_ns = profile->ns; | 1500 | *prev_ns = profile->ns; |
1501 | ns_name = aa_ns_name(view, profile->ns, | 1501 | ns_name = aa_ns_name(view, profile->ns, |