diff mbox series

Security/Apparmor: Fixed a bracket problem in audit.c

Message ID 20201221143252.32271-1-alexander.guril02@gmail.com (mailing list archive)
State New
Headers show
Series Security/Apparmor: Fixed a bracket problem in audit.c | expand

Commit Message

Alexander Guril Dec. 21, 2020, 2:32 p.m. UTC
This patch fixes a bracket problem in security/apparmor/audit.c

Signed-off-by: Alexander Guril <alexander.guril02@gmail.com>
---
 security/apparmor/audit.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/security/apparmor/audit.c b/security/apparmor/audit.c
index f7e97c7e80f3..63c4367f97b7 100644
--- a/security/apparmor/audit.c
+++ b/security/apparmor/audit.c
@@ -61,9 +61,8 @@  static void audit_pre(struct audit_buffer *ab, void *ca)
 				 aa_audit_type[aad(sa)->type]);
 	}
 
-	if (aad(sa)->op) {
+	if (aad(sa)->op)
 		audit_log_format(ab, " operation=\"%s\"", aad(sa)->op);
-	}
 
 	if (aad(sa)->info) {
 		audit_log_format(ab, " info=\"%s\"", aad(sa)->info);