Unionfs: minor coding standards applied
authorErez Zadok <ezk@cs.sunysb.edu>
Sun, 25 Nov 2007 23:27:27 +0000 (18:27 -0500)
committerErez Zadok <ezk@cs.sunysb.edu>
Sun, 23 Mar 2008 03:49:01 +0000 (23:49 -0400)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/copyup.c
fs/unionfs/dirfops.c

index b04ac2bd9e2c9976d466a2cf8218627cf6ff2af9..153599d11a8bce56c253bdced22c12ddf2ce374c 100644 (file)
@@ -454,8 +454,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: