From: Erez_Zadok Date: Sat, 24 Mar 2007 22:19:49 +0000 (-0400) Subject: coding-style: remove unnecessary {braces} around one-line code blocks X-Git-Tag: unionfs-2.1.1~157 X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=c4002d37e84ce784ab18aa32febd86b22c460826;p=unionfs-2.6.22.y.git coding-style: remove unnecessary {braces} around one-line code blocks --- diff --git a/fs/unionfs/dentry.c b/fs/unionfs/dentry.c index 17c0b274c37..ab3f9e64031 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