Skip to content

Commit

Permalink
xfs: remove redundant initialization of variable error
Browse files Browse the repository at this point in the history
'error' will be initialized, so clean up the redundant initialization.

Cc: "Darrick J. Wong" <[email protected]>
Signed-off-by: Shaokun Zhang <[email protected]>
Reviewed-by: Darrick J. Wong <[email protected]>
Signed-off-by: Darrick J. Wong <[email protected]>
  • Loading branch information
zhangshk authored and Darrick J. Wong committed Jun 18, 2021
1 parent 90e2c1c commit 9bb38aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/xfs/xfs_buf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9bb38aa

Please sign in to comment.