Skip to content

Commit

Permalink
fs/notify/mark.c: trivial cleanup
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
David Cohen authored and torvalds committed Jun 4, 2014
1 parent d4c7cf6 commit efa8f7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/notify/mark.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit efa8f7e

Please sign in to comment.