Commit 9bb38aa0 authored by Shaokun Zhang's avatar Shaokun Zhang Committed by Darrick J. Wong

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: default avatarShaokun Zhang <zhangshaokun@hisilicon.com>
Reviewed-by: default avatarDarrick J. Wong <djwong@kernel.org>
Signed-off-by: default avatarDarrick J. Wong <djwong@kernel.org>
parent 90e2c1c2
...@@ -648,7 +648,7 @@ xfs_buf_get_map( ...@@ -648,7 +648,7 @@ xfs_buf_get_map(
{ {
struct xfs_buf *bp; struct xfs_buf *bp;
struct xfs_buf *new_bp; struct xfs_buf *new_bp;
int error = 0; int error;
*bpp = NULL; *bpp = NULL;
error = xfs_buf_find(target, map, nmaps, flags, NULL, &bp); error = xfs_buf_find(target, map, nmaps, flags, NULL, &bp);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment