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

Dmitry Mastykin dmastykin at astralinux.ru
Fri Aug 6 07:02:44 UTC 2021


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

Signed-off-by: Dmitry Mastykin <dmastykin at astralinux.ru>
---
 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



More information about the Linux-security-module-archive mailing list