Skip to contentSkip to conversation

fs/reiserfs/xattr.c: use LIST_HEAD instead of LIST_HEAD_INIT

PATCH Applied Denis Cheng 1 participant 1 message Dec 6, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 12/20 fs/reiserfs/xattr.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/reiserfs/xattr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/reiserfs/xattr.c +1 -1
index 1597f6b..a5bd23c 100644
@@ -1084,7 +1084,7 @@ ssize_t reiserfs_listxattr(struct dentry * dentry, char *buffer, size_t size)
 }
 
 /* This is the implementation for the xattr plugin infrastructure */
-static struct list_head xattr_handlers = LIST_HEAD_INIT(xattr_handlers);
+static LIST_HEAD(xattr_handlers);
 static DEFINE_RWLOCK(handler_lock);
 
 static struct reiserfs_xattr_handler *find_xattr_handler_prefix(const char
Signature · 1 line
1.5.3.4