mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 10:29:37 +00:00
xfs: fix error initialization
Eric Sandeen reported a gcc complaint about uninitialized error variables, so fix that. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reported-by: Eric Sandeen <sandeen@redhat.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
parent
93fed47013
commit
9780643cde
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue