From: David Cohen Date: Thu, 24 Apr 2014 22:55:28 +0000 (+1000) Subject: fs/notify/mark.c: trivial cleanup X-Git-Tag: next-20140428~2^2~232 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a8dfc086aadce65dba36184a66c5ff5f7cb29724;p=karo-tx-linux.git 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: David Cohen Cc: Jan Kara Signed-off-by: Andrew Morton --- diff --git a/fs/notify/mark.c b/fs/notify/mark.c index 923fe4a5f503..d90deaa08e78 100644 --- a/fs/notify/mark.c +++ b/fs/notify/mark.c @@ -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);