Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1586995

[PATCH 3/3] audit: audit_watch: remove unnecessary semicolon

From Nicholas Mc Guire <der.herr@hofr.at>
Newsgroups linux.kernel
Subject [PATCH 3/3] audit: audit_watch: remove unnecessary semicolon
Date 2017-02-23 17:30 +0100
Message-ID <te4rg-3IU-23@gated-at.bofh.it> (permalink)
References <te4rg-3IU-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


The excess ; after the closing parenthesis is just code-noise it has no
and can be removed.

Signed-off-by: Nicholas Mc Guire <der.herr@hofr.at>
---
Problem located by coccinelle
./kernel/audit_watch.c:495:2-3: Unneeded semicolon

Patch was compiletested with: x86_64_defconfig (implies CONFIG_AUDIT )

Patch is against 4.10.0 (localversion-next is next-20170222)

 kernel/audit_watch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/audit_watch.c b/kernel/audit_watch.c
index f79e465..e293165 100644
--- a/kernel/audit_watch.c
+++ b/kernel/audit_watch.c
@@ -492,7 +492,7 @@ static int audit_watch_handle_event(struct fsnotify_group *group,
 		BUG();
 		inode = NULL;
 		break;
-	};
+	}
 
 	if (mask & (FS_CREATE|FS_MOVED_TO) && inode)
 		audit_update_watch(parent, dname, inode->i_sb->s_dev, inode->i_ino, 0);
-- 
2.1.4

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH 3/3] audit: audit_watch: remove unnecessary semicolon Nicholas Mc Guire <der.herr@hofr.at> - 2017-02-23 17:30 +0100

csiph-web