Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit efa8f7e5 authored by David Cohen's avatar David Cohen Committed by Linus Torvalds
Browse files

fs/notify/mark.c: trivial cleanup



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: default avatarDavid Cohen <david.a.cohen@linux.intel.com>
Cc: Jan Kara <jack@suse.cz>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent d4c7cf6c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);