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