Skip to contentSkip to conversation

fs/afs/cell.c: use LIST_HEAD instead of LIST_HEAD_INIT

PATCH Applied Denis Cheng 2 participants 2 messages Dec 6, 2007 Afs filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 11/20 fs/afs/cell.c: use LIST_HEAD instead of LIST_HEAD_INIT

single list_head variable initialized with LIST_HEAD_INIT could almost always can be replaced with LIST_HEAD declaration, this shrinks the code and looks better.

---
 fs/afs/cell.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/afs/cell.c +1 -1
index 970d38f..b4a09ab 100644
@@ -20,7 +20,7 @@
 DECLARE_RWSEM(afs_proc_cells_sem);
 LIST_HEAD(afs_proc_cells);
 
-static struct list_head afs_cells = LIST_HEAD_INIT(afs_cells);
+static LIST_HEAD(afs_cells);
 static DEFINE_RWLOCK(afs_cells_lock);
 static DECLARE_RWSEM(afs_cells_sem); /* add/remove serialisation */
 static DECLARE_WAIT_QUEUE_HEAD(afs_cells_freeable_wq);
Signature · 1 line
1.5.3.4
maintainer
#1 lore raw
Quoted 3 lines · Denis Cheng

single list_head variable initialized with LIST_HEAD_INIT could almost always can be replaced with LIST_HEAD declaration, this shrinks the code and looks better.

And mucks up TAGS generation:-/