From 9780643cde26406d324413ae5c51e772144533bc Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Mon, 10 Oct 2016 16:49:18 +1100 Subject: [PATCH] xfs: fix error initialization Eric Sandeen reported a gcc complaint about uninitialized error variables, so fix that. Signed-off-by: Darrick J. Wong Reported-by: Eric Sandeen Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- fs/xfs/xfs_reflink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- GitLab