From: Shaokun Zhang Date: Fri, 18 Jun 2021 15:14:31 +0000 (-0700) Subject: xfs: remove redundant initialization of variable error X-Git-Tag: v5.14-rc1~97^2~26 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9bb38aa080394fb327c90eff75388e0598f266f0;p=thirdparty%2Fkernel%2Flinux.git xfs: remove redundant initialization of variable error 'error' will be initialized, so clean up the redundant initialization. Cc: "Darrick J. Wong" Signed-off-by: Shaokun Zhang Reviewed-by: Darrick J. Wong Signed-off-by: Darrick J. Wong --- diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c index b4ee9d3532f03..11edd4ad81514 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);