summaryrefslogtreecommitdiffstats
path: root/fs/xfs
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2016-10-10 16:49:18 +1100
committerDave Chinner <david@fromorbit.com>2016-10-10 16:49:18 +1100
commit9780643cde26406d324413ae5c51e772144533bc (patch)
tree4802332970e8c57ee2f8b69b48e7c230f2ced258 /fs/xfs
parent93fed47013b3c17318968cad0e81bd74196798c4 (diff)
downloadlinux-9780643cde26406d324413ae5c51e772144533bc.tar.bz2
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>
Diffstat (limited to 'fs/xfs')
-rw-r--r--fs/xfs/xfs_reflink.c2
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(
xfs_off_t flen;
struct xfs_bmbt_irec map[2];
int nmaps;
- int error;
+ int error = 0;
while (end - fbno > 0) {
nmaps = 1;