xfs: remove redundant stat assignment in xfs_bulkstat_one_int
authorJie Liu <jeff.liu@oracle.com>
Thu, 24 Jul 2014 01:33:28 +0000 (11:33 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 24 Jul 2014 01:33:28 +0000 (11:33 +1000)
From: Jie Liu <jeff.liu@oracle.com>

Remove the redundant BULKSTAT_RV_NOTHING assignment in case of call
xfs_iget() failed at xfs_bulkstat_one_int().

Signed-off-by: Jie Liu <jeff.liu@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_itable.c

index 7e54992bcae90a7dba507dbe88dc8e2621a3b16a..ca15214f1772c4148736c057e10d133a3298a2ef 100644 (file)
@@ -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;
 
This page took 0.025274 seconds and 5 git commands to generate.