fsnotify: remove pointless NULL initializers
authorJan Kara <jack@suse.cz>
Tue, 21 Jan 2014 23:48:16 +0000 (15:48 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 22 Jan 2014 00:19:41 +0000 (16:19 -0800)
We usually rely on the fact that struct members not specified in the
initializer are set to NULL.  So do that with fsnotify function pointers
as well.

Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: Eric Paris <eparis@parisplace.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/notify/dnotify/dnotify.c
fs/notify/fanotify/fanotify.c
kernel/audit_tree.c
kernel/audit_watch.c

index 928688e3ee2f860cffc428cf396ae67fe7bbcea2..0b9ff4395e6ac320f6108f7c3cabb2d57d5a426f 100644 (file)
@@ -138,9 +138,6 @@ static void dnotify_free_mark(struct fsnotify_mark *fsn_mark)
 
 static struct fsnotify_ops dnotify_fsnotify_ops = {
        .handle_event = dnotify_handle_event,
-       .free_group_priv = NULL,
-       .freeing_mark = NULL,
-       .free_event = NULL,
 };
 
 /*
index 1f8f05220f8dd72aa6d8c00a792280084924ae45..58772623f02a90e7e7c4355921ba0c8457024175 100644 (file)
@@ -230,5 +230,4 @@ const struct fsnotify_ops fanotify_fsnotify_ops = {
        .handle_event = fanotify_handle_event,
        .free_group_priv = fanotify_free_group_priv,
        .free_event = fanotify_free_event,
-       .freeing_mark = NULL,
 };
index ae8103b057fa6e957ae977fc1c20ccafef884d2f..67ccf0e7cca92412f457175d5ff3e784b254966a 100644 (file)
@@ -936,8 +936,6 @@ static void audit_tree_freeing_mark(struct fsnotify_mark *entry, struct fsnotify
 
 static const struct fsnotify_ops audit_tree_ops = {
        .handle_event = audit_tree_handle_event,
-       .free_group_priv = NULL,
-       .free_event = NULL,
        .freeing_mark = audit_tree_freeing_mark,
 };
 
index 367ac9a79acc707673a0a8b647ab3e8a6b843980..2596fac5dcb4552a0d574decada597424df0587b 100644 (file)
@@ -505,9 +505,6 @@ static int audit_watch_handle_event(struct fsnotify_group *group,
 
 static const struct fsnotify_ops audit_watch_fsnotify_ops = {
        .handle_event =         audit_watch_handle_event,
-       .free_group_priv =      NULL,
-       .freeing_mark =         NULL,
-       .free_event =           NULL,
 };
 
 static int __init audit_watch_init(void)