commit 58cc090b85a4b78d170ab96078e0a4c4ec0c6d2e
Author: Erez Zadok <[EMAIL PROTECTED]>
Date:   Sun Sep 30 00:13:35 2007 -0400

    Unionfs: remove unnecessary if condition
    
    The condition is always true there.
    
    Signed-off-by: Erez Zadok <[EMAIL PROTECTED]>

diff --git a/fs/unionfs/dirfops.c b/fs/unionfs/dirfops.c
index 1e8d2df..e24975a 100644
--- a/fs/unionfs/dirfops.c
+++ b/fs/unionfs/dirfops.c
@@ -63,12 +63,10 @@ static int unionfs_filldir(void *dirent, const char *name, 
int namelen,
                off_t pos = rdstate2offset(buf->rdstate);
                u64 unionfs_ino = ino;
 
-               if (!err) {
-                       err = buf->filldir(buf->dirent, name, namelen, pos,
-                                          unionfs_ino, d_type);
-                       buf->rdstate->offset++;
-                       verify_rdstate_offset(buf->rdstate);
-               }
+               err = buf->filldir(buf->dirent, name, namelen, pos,
+                                  unionfs_ino, d_type);
+               buf->rdstate->offset++;
+               verify_rdstate_offset(buf->rdstate);
        }
        /*
         * If we did fill it, stuff it in our hash, otherwise return an
_______________________________________________
unionfs-cvs mailing list: http://unionfs.filesystems.org/
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs-cvs

Reply via email to