xfs: xfs_qm: remove unnecessary ‘0’ values from error
authorLi zeming <zeming@nfschina.com>
Tue, 3 Jan 2023 17:54:28 +0000 (09:54 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 3 Jan 2023 18:23:07 +0000 (10:23 -0800)
error is assigned first, so it does not need to initialize the
assignment.

Signed-off-by: Li zeming <zeming@nfschina.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/xfs_qm.c

index ff53d40a2dae3ad5443980aef6922dfbfa20be6b..e2c542f6dcd4d8c6ad3492a1f420515c68156db9 100644 (file)
@@ -68,7 +68,7 @@ restart:
 
        while (1) {
                struct xfs_dquot *batch[XFS_DQ_LOOKUP_BATCH];
-               int             error = 0;
+               int             error;
                int             i;
 
                mutex_lock(&qi->qi_tree_lock);