diff options
author | Shaokun Zhang <zhangshaokun@hisilicon.com> | 2021-06-18 18:14:31 +0300 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-06-18 18:14:31 +0300 |
commit | 9bb38aa080394fb327c90eff75388e0598f266f0 (patch) | |
tree | ae5b623617ced4ee9d3f46cb96ca06c9241df954 | |
parent | 90e2c1c20ac672756a2835b5a92a606dd48a4aa3 (diff) | |
download | linux-9bb38aa080394fb327c90eff75388e0598f266f0.tar.xz |
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>
-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 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); |