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>
This commit is contained in:
parent
5d314a81ec
commit
c5561700c9
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue