From 3d93a5e1565af1df87bd2630c2c74de2af8f52df Mon Sep 17 00:00:00 2001 From: Erez Zadok Date: Sun, 18 Nov 2007 20:46:16 -0500 Subject: [PATCH] Unionfs: minor coding standards applied Signed-off-by: Erez Zadok --- fs/unionfs/copyup.c | 4 ++-- fs/unionfs/dirfops.c | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/fs/unionfs/copyup.c b/fs/unionfs/copyup.c index 98bed0b75ef..3fe48658d43 100644 --- a/fs/unionfs/copyup.c +++ b/fs/unionfs/copyup.c @@ -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 diff --git a/fs/unionfs/dirfops.c b/fs/unionfs/dirfops.c index c644c138f9e..5276cb363ae 100644 --- a/fs/unionfs/dirfops.c +++ b/fs/unionfs/dirfops.c @@ -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: -- 2.34.1