diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2019-02-25 09:35:34 -0800 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2019-02-25 10:16:41 -0800 |
commit | c1a4447f5e6ae8fb1f34a474f3083fb91cc4da90 (patch) | |
tree | e35f6ab848122c0c0db792bb4595773eb8f30914 /fs/xfs/libxfs/xfs_sb.c | |
parent | 4f29e10d689f5678b947df978bd0c96e4d70686f (diff) | |
download | linux-c1a4447f5e6ae8fb1f34a474f3083fb91cc4da90.tar.gz linux-c1a4447f5e6ae8fb1f34a474f3083fb91cc4da90.tar.bz2 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/libxfs/xfs_sb.c')
-rw-r--r-- | fs/xfs/libxfs/xfs_sb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_sb.c b/fs/xfs/libxfs/xfs_sb.c index 4e5029c37966..77a3a4085de3 100644 --- a/fs/xfs/libxfs/xfs_sb.c +++ b/fs/xfs/libxfs/xfs_sb.c @@ -877,7 +877,7 @@ xfs_initialize_perag_data( uint64_t bfreelst = 0; uint64_t btree = 0; uint64_t fdblocks; - int error; + int error = 0; for (index = 0; index < agcount; index++) { /* |