Commit c1a4447f authored by Darrick J. Wong's avatar Darrick J. Wong

xfs: fix uninitialized error variables

smatch complained about some uninitialized error returns, so fix those.
Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: default avatarAllison Henderson <allison.henderson@oracle.com>
parent 4f29e10d
...@@ -877,7 +877,7 @@ xfs_initialize_perag_data( ...@@ -877,7 +877,7 @@ xfs_initialize_perag_data(
uint64_t bfreelst = 0; uint64_t bfreelst = 0;
uint64_t btree = 0; uint64_t btree = 0;
uint64_t fdblocks; uint64_t fdblocks;
int error; int error = 0;
for (index = 0; index < agcount; index++) { for (index = 0; index < agcount; index++) {
/* /*
......
...@@ -261,7 +261,7 @@ xfs_reflink_convert_cow_locked( ...@@ -261,7 +261,7 @@ xfs_reflink_convert_cow_locked(
struct xfs_bmbt_irec got; struct xfs_bmbt_irec got;
struct xfs_btree_cur *dummy_cur = NULL; struct xfs_btree_cur *dummy_cur = NULL;
int dummy_logflags; int dummy_logflags;
int error; int error = 0;
if (!xfs_iext_lookup_extent(ip, ip->i_cowfp, offset_fsb, &icur, &got)) if (!xfs_iext_lookup_extent(ip, ip->i_cowfp, offset_fsb, &icur, &got))
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment