Skip to contentSkip to conversation

staging: lusture: llite: Remove multiple assignments

PATCH New Bhaktipriya Shridhar 1 participant 1 message Feb 23, 2016 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: lusture: llite: Remove multiple assignments

This patch removes multiple assignments by factorizing them. This was done with Coccinelle.
@@
identifier i1,i2;
constant c;
@@
- i1=i2=c;
+ i1=c;
+ i2=c;

---
 drivers/staging/lustre/lustre/llite/namei.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/lustre/lustre/llite/namei.c +2 -1
index 7e62198..4f91a9f 100644
@@ -313,7 +313,8 @@ static struct dentry *ll_find_alias(struct inode *inode, struct dentry *dentry)
 	if (hlist_empty(&inode->i_dentry))
 		return NULL;
 
-	discon_alias = invalid_alias = NULL;
+	discon_alias = NULL;
+	invalid_alias = NULL;
 
 	ll_lock_dcache(inode);
 	hlist_for_each_entry(alias, &inode->i_dentry, d_u.d_alias) {

--
2.1.4