summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_reflink.c
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2019-02-25 18:35:34 +0100
committerDarrick J. Wong <darrick.wong@oracle.com>2019-02-25 19:16:41 +0100
commitc1a4447f5e6ae8fb1f34a474f3083fb91cc4da90 (patch)
treee35f6ab848122c0c0db792bb4595773eb8f30914 /fs/xfs/xfs_reflink.c
parentxfs: rework breaking of shared extents in xfs_file_iomap_begin (diff)
downloadlinux-c1a4447f5e6ae8fb1f34a474f3083fb91cc4da90.tar.xz
linux-c1a4447f5e6ae8fb1f34a474f3083fb91cc4da90.zip
xfs: fix uninitialized error variables
smatch complained about some uninitialized error returns, so fix those. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
Diffstat (limited to 'fs/xfs/xfs_reflink.c')
-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 d42e3ef9050e..680ae7662a78 100644
--- a/fs/xfs/xfs_reflink.c
+++ b/fs/xfs/xfs_reflink.c
@@ -261,7 +261,7 @@ xfs_reflink_convert_cow_locked(
struct xfs_bmbt_irec got;
struct xfs_btree_cur *dummy_cur = NULL;
int dummy_logflags;
- int error;
+ int error = 0;
if (!xfs_iext_lookup_extent(ip, ip->i_cowfp, offset_fsb, &icur, &got))
return 0;