xfs
[Top] [All Lists]

[PATCH 1/10] xfs: remove redundant stat assignment int xfs_bulkstat_one

To: "xfs@xxxxxxxxxxx" <xfs@xxxxxxxxxxx>
Subject: [PATCH 1/10] xfs: remove redundant stat assignment int xfs_bulkstat_one_int
From: Jeff Liu <jeff.liu@xxxxxxxxxx>
Date: Sat, 28 Dec 2013 19:19:59 +0800
Delivered-to: xfs@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0
From: Jie Liu <jeff.liu@xxxxxxxxxx>

Trivial fix to get rid of redundant BULKSTAT_RV_NOTHING assignment
in xfs_bulkstat_one_int().

Signed-off-by: Jie Liu <jeff.liu@xxxxxxxxxx>
---
 fs/xfs/xfs_itable.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/fs/xfs/xfs_itable.c b/fs/xfs/xfs_itable.c
index f463382..b5bb7b6 100644
--- a/fs/xfs/xfs_itable.c
+++ b/fs/xfs/xfs_itable.c
@@ -76,10 +76,8 @@ xfs_bulkstat_one_int(
        error = xfs_iget(mp, NULL, ino,
                         (XFS_IGET_DONTCACHE | XFS_IGET_UNTRUSTED),
                         XFS_ILOCK_SHARED, &ip);
-       if (error) {
-               *stat = BULKSTAT_RV_NOTHING;
+       if (error)
                goto out_free;
-       }
 
        ASSERT(ip != NULL);
        ASSERT(ip->i_imap.im_blkno != 0);
@@ -136,7 +134,6 @@ xfs_bulkstat_one_int(
        IRELE(ip);
 
        error = formatter(buffer, ubsize, ubused, buf);
-
        if (!error)
                *stat = BULKSTAT_RV_DIDONE;
 
-- 
1.8.3.2

<Prev in Thread] Current Thread [Next in Thread>