Thread (7 messages) flat view 7 messages, 2 authors, 2021-10-25
STALE1796d

[PATCH 2/3] security/security: get rid of a duplicated condition

From: Dmitry Mastykin <hidden>
Date: 2021-08-06 07:11:45
Subsystem: security subsystem, the rest · Maintainers: Paul Moore, James Morris, "Serge E. Hallyn", Linus Torvalds

Just remove a typo: the same if() was duplicated.

Signed-off-by: Dmitry Mastykin <redacted>
---
 security/security.c | 2 --
 1 file changed, 2 deletions(-)
diff --git a/security/security.c b/security/security.c
index fd14064e9106..1ab6f56a93b6 100644
--- a/security/security.c
+++ b/security/security.c
@@ -2930,8 +2930,6 @@ int security_audit_rule_match(struct lsmblob *blob, u32 field, u32 op,
 			continue;
 		if (lsmrule[hp->lsmid->slot] == NULL)
 			continue;
-		if (lsmrule[hp->lsmid->slot] == NULL)
-			continue;
 		rc = hp->hook.audit_rule_match(blob->secid[hp->lsmid->slot],
 					       field, op,
 					       lsmrule[hp->lsmid->slot]);
-- 
2.11.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help