]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
fs/notify/mark.c: trivial cleanup
authorDavid Cohen <david.a.cohen@linux.intel.com>
Thu, 22 May 2014 00:42:25 +0000 (10:42 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 22 May 2014 00:42:25 +0000 (10:42 +1000)
Do not initialize private_destroy_list twice.  list_replace_init() already
takes care of initializing private_destroy_list.  We don't need to
initialize it with LIST_HEAD() beforehand.

Signed-off-by: David Cohen <david.a.cohen@linux.intel.com>
Cc: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/notify/mark.c

index 923fe4a5f503fa0ea707a4cea3d811a973e0cf6f..d90deaa08e78f6e82cde921f5914000bc9ca4a97 100644 (file)
@@ -340,7 +340,7 @@ void fsnotify_init_mark(struct fsnotify_mark *mark,
 static int fsnotify_mark_destroy(void *ignored)
 {
        struct fsnotify_mark *mark, *next;
-       LIST_HEAD(private_destroy_list);
+       struct list_head private_destroy_list;
 
        for (;;) {
                spin_lock(&destroy_lock);