Unionfs: minor coding standards applied
authorErez Zadok <ezk@cs.sunysb.edu>
Mon, 19 Nov 2007 01:46:16 +0000 (20:46 -0500)
committerErez Zadok <ezk@cs.sunysb.edu>
Fri, 29 Apr 2011 02:25:20 +0000 (22:25 -0400)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/copyup.c
fs/unionfs/dirfops.c

index 98bed0b75efaf7a54c676a98bfb90a14dedb665e..3fe48658d4340cd81e396587372b82098629276a 100644 (file)
@@ -460,8 +460,8 @@ int copyup_dentry(struct inode *dir, struct dentry *dentry, int bstart,
                goto out_unlink;
 
        /* Set permissions. */
-       if ((err = copyup_permissions(sb, old_lower_dentry,
-                                     new_lower_dentry)))
+       err = copyup_permissions(sb, old_lower_dentry, new_lower_dentry);
+       if (err)
                goto out_unlink;
 
 #ifdef CONFIG_UNION_FS_XATTR
index c644c138f9eaee6266a43aecc276ec82fb913f8a..5276cb363ae9de57ddb0dd8a6967ce49d5038828 100644 (file)
@@ -77,8 +77,9 @@ static int unionfs_filldir(void *dirent, const char *name, int namelen,
                goto out;
        }
        buf->entries_written++;
-       if ((err = add_filldir_node(buf->rdstate, name, namelen,
-                                   buf->rdstate->bindex, is_wh_entry)))
+       err = add_filldir_node(buf->rdstate, name, namelen,
+                              buf->rdstate->bindex, is_wh_entry);
+       if (err)
                buf->filldir_error = err;
 
 out: