summaryrefslogtreecommitdiff
path: root/fs/xfs
diff options
context:
space:
mode:
authorShaokun Zhang <zhangshaokun@hisilicon.com>2021-06-18 08:14:31 -0700
committerDarrick J. Wong <djwong@kernel.org>2021-06-18 08:14:31 -0700
commit9bb38aa080394fb327c90eff75388e0598f266f0 (patch)
treeae5b623617ced4ee9d3f46cb96ca06c9241df954 /fs/xfs
parent90e2c1c20ac672756a2835b5a92a606dd48a4aa3 (diff)
xfs: remove redundant initialization of variable error
'error' will be initialized, so clean up the redundant initialization. Cc: "Darrick J. Wong" <djwong@kernel.org> Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs')
-rw-r--r--fs/xfs/xfs_buf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c
index b4ee9d3532f0..11edd4ad8151 100644
--- a/fs/xfs/xfs_buf.c
+++ b/fs/xfs/xfs_buf.c
@@ -648,7 +648,7 @@ xfs_buf_get_map(
{
struct xfs_buf *bp;
struct xfs_buf *new_bp;
- int error = 0;
+ int error;
*bpp = NULL;
error = xfs_buf_find(target, map, nmaps, flags, NULL, &bp);