xfs: remove redundant initialization of variable error
authorShaokun Zhang <zhangshaokun@hisilicon.com>
Fri, 18 Jun 2021 15:14:31 +0000 (08:14 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Fri, 18 Jun 2021 15:14:31 +0000 (08:14 -0700)
'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>
fs/xfs/xfs_buf.c

index b4ee9d3532f038fcabf055838dfd87d1a32e3b5f..11edd4ad815142f9ec391e91b85762a0ab9afd62 100644 (file)
@@ -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);