* [PATCH] fsnotify: trivial cleanup
@ 2014-04-02 17:17 David Cohen
0 siblings, 0 replies; only message in thread
From: David Cohen @ 2014-04-02 17:17 UTC (permalink / raw)
To: akpm, LinoSanfilippo; +Cc: trivial, linux-kernel, linux-janitors, David Cohen
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>
---
fs/notify/mark.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
--
1.9.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-04-02 17:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-02 17:17 [PATCH] fsnotify: trivial cleanup David Cohen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome