coding-style: remove unnecessary {braces} around one-line code blocks
authorErez_Zadok <ezk@cs.sunysb.edu>
Sat, 24 Mar 2007 22:19:49 +0000 (18:19 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Mon, 12 Jan 2009 23:20:22 +0000 (18:20 -0500)
fs/unionfs/dentry.c

index 17c0b274c3707612a8fdbc3ed80bec37b967f6f5..ab3f9e64031852d9b4bcdffe0755147707098627 100644 (file)
@@ -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: