Commit 9780643c authored by Darrick J. Wong's avatar Darrick J. Wong Committed by Dave Chinner

xfs: fix error initialization

Eric Sandeen reported a gcc complaint about uninitialized error
variables, so fix that.
Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Reported-by: default avatarEric Sandeen <sandeen@redhat.com>
Reviewed-by: default avatarDave Chinner <dchinner@redhat.com>
Signed-off-by: default avatarDave Chinner <david@fromorbit.com>
parent 93fed470
......@@ -1437,7 +1437,7 @@ xfs_reflink_dirty_extents(
xfs_off_t flen;
struct xfs_bmbt_irec map[2];
int nmaps;
int error;
int error = 0;
while (end - fbno > 0) {
nmaps = 1;
......
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