diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2016-10-10 01:49:18 -0400 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2016-10-10 01:49:18 -0400 |
commit | 9780643cde26406d324413ae5c51e772144533bc (patch) | |
tree | 4802332970e8c57ee2f8b69b48e7c230f2ced258 | |
parent | 93fed47013b3c17318968cad0e81bd74196798c4 (diff) |
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>
-rw-r--r-- | fs/xfs/xfs_reflink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_reflink.c b/fs/xfs/xfs_reflink.c index 220d2638bb84..5965e9455d91 100644 --- a/fs/xfs/xfs_reflink.c +++ b/fs/xfs/xfs_reflink.c | |||
@@ -1437,7 +1437,7 @@ xfs_reflink_dirty_extents( | |||
1437 | xfs_off_t flen; | 1437 | xfs_off_t flen; |
1438 | struct xfs_bmbt_irec map[2]; | 1438 | struct xfs_bmbt_irec map[2]; |
1439 | int nmaps; | 1439 | int nmaps; |
1440 | int error; | 1440 | int error = 0; |
1441 | 1441 | ||
1442 | while (end - fbno > 0) { | 1442 | while (end - fbno > 0) { |
1443 | nmaps = 1; | 1443 | nmaps = 1; |