Skip to content

Commit

Permalink
apparmor: Redundant condition: prev_ns. in [label.c:1498]
Browse files Browse the repository at this point in the history
Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
  • Loading branch information
John Johansen committed Sep 22, 2017
1 parent 5d314a8 commit c556170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion security/apparmor/label.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c556170

Please sign in to comment.