summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi zeming <zeming@nfschina.com>2023-01-03 20:54:28 +0300
committerDarrick J. Wong <djwong@kernel.org>2023-01-03 21:23:07 +0300
commite195605ed28b5581dc2d509283cfea2e8635a251 (patch)
treebc2ff22662c000b930eb7d007f03b32996208aa1
parent4da112513c01d7d0acf1025b8764349d46e177d6 (diff)
downloadlinux-e195605ed28b5581dc2d509283cfea2e8635a251.tar.xz
xfs: xfs_qm: remove unnecessary ‘0’ values from error
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>
-rw-r--r--fs/xfs/xfs_qm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_qm.c b/fs/xfs/xfs_qm.c
index ff53d40a2dae..e2c542f6dcd4 100644
--- a/fs/xfs/xfs_qm.c
+++ b/fs/xfs/xfs_qm.c
@@ -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);