From b33c181708addd0f4a1ac33ce21243f67fb5c68d Mon Sep 17 00:00:00 2001 From: Erez Zadok Date: Sat, 29 Sep 2007 01:36:57 -0400 Subject: [PATCH] Unionfs: remove unnecessary if condition The condition is always true there. Signed-off-by: Erez Zadok --- fs/unionfs/dirfops.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/fs/unionfs/dirfops.c b/fs/unionfs/dirfops.c index 200fb550c1e..da0fcdb2f61 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 -- 2.43.0