GIT: unionfs2-2.6.27.y: coding-style: remove unnecessary {braces} around one-line code blocks
Erez Zadok
ezk at fsl.cs.sunysb.edu
Thu Aug 12 23:16:05 EDT 2010
commit bc6b0e2b2e76c7ff42e05fde2ef3f21b5ee0c697
Author: Erez_Zadok <ezk at cs.sunysb.edu>
Date: Sat Mar 24 18:19:49 2007 -0400
coding-style: remove unnecessary {braces} around one-line code blocks
diff --git a/fs/unionfs/dentry.c b/fs/unionfs/dentry.c
index 17c0b27..ab3f9e6 100644
--- a/fs/unionfs/dentry.c
+++ b/fs/unionfs/dentry.c
@@ -196,9 +196,8 @@ int __unionfs_d_revalidate_chain(struct dentry *dentry, struct nameidata *nd)
dtmp = dtmp->d_parent;
dgen = atomic_read(&UNIONFS_D(dtmp)->generation);
}
- if (chain_len == 0) {
+ if (chain_len == 0)
goto out_this; /* shortcut if parents are OK */
- }
/*
* Allocate array of dentries to reval. We could use linked lists,
@@ -242,9 +241,8 @@ int __unionfs_d_revalidate_chain(struct dentry *dentry, struct nameidata *nd)
}
unionfs_unlock_dentry(chain[i]);
- if (!valid) {
+ if (!valid)
goto out_free;
- }
}
@@ -264,9 +262,8 @@ out_this:
out_free:
/* unlock/dput all dentries in chain and return status */
if (chain_len > 0) {
- for (i=0; i<chain_len; i++) {
+ for (i=0; i<chain_len; i++)
dput(chain[i]);
- }
kfree(chain);
}
out:
More information about the unionfs-cvs
mailing list