diff options
author | Shaokun Zhang <zhangshaokun@hisilicon.com> | 2021-06-11 17:52:55 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-06-12 17:12:40 -0700 |
commit | e0d2d97b5477f332430e716681a65f5c3f7fc880 (patch) | |
tree | 57952535f912b413821bfaf8bdbe5d1c76360fd7 | |
parent | c185e2d3b728189d55b962df1e474a893c0a83a5 (diff) |
xfs: remove redundant initialization of variable errorxfs-5.14-merge-3
'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>
-rw-r--r-- | fs/xfs/xfs_buf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_buf.c b/fs/xfs/xfs_buf.c index 1914103beeb2..8ff42b3585e0 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); |