Skip to content

Commit c556170

Browse files
committed
apparmor: Redundant condition: prev_ns. in [label.c:1498]
Reported-by: David Binderman <[email protected]> Signed-off-by: John Johansen <[email protected]>
1 parent 5d314a8 commit c556170

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/apparmor/label.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1495,7 +1495,7 @@ static int aa_profile_snxprint(char *str, size_t size, struct aa_ns *view,
14951495
view = profiles_ns(profile);
14961496

14971497
if (view != profile->ns &&
1498-
(!prev_ns || (prev_ns && *prev_ns != profile->ns))) {
1498+
(!prev_ns || (*prev_ns != profile->ns))) {
14991499
if (prev_ns)
15001500
*prev_ns = profile->ns;
15011501
ns_name = aa_ns_name(view, profile->ns,

0 commit comments

Comments
 (0)