diff mbox series

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

Message ID 20210806070245.26338-3-dmastykin@astralinux.ru (mailing list archive)
State New, archived
Headers show
Series [1/3] security/security: remove extra address-of in hook.audit_rule_match call | expand

Commit Message

Dmitry Mastykin Aug. 6, 2021, 7:02 a.m. UTC
Just remove a typo: the same if() was duplicated.

Signed-off-by: Dmitry Mastykin <dmastykin@astralinux.ru>
---
 security/security.c | 2 --
 1 file changed, 2 deletions(-)
diff mbox series

Patch

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]);