Ignore the return values as other close()s instead.

Coverity-id: 502331
Signed-off-by: Gao Xiang <[email protected]>
---
 fsck/main.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/fsck/main.c b/fsck/main.c
index fb66967..bbef645 100644
--- a/fsck/main.c
+++ b/fsck/main.c
@@ -702,11 +702,9 @@ again:
 
        /* verify data chunk layout */
        ret = erofs_verify_inode_data(inode, fd);
+       close(fd);
        if (ret)
                return ret;
-
-       if (close(fd))
-               return -errno;
        return ret;
 }
 
-- 
2.43.5

Reply via email to