diff options
author | Darrick J. Wong | 2017-11-06 12:01:48 -0800 |
---|---|---|
committer | Darrick J. Wong | 2017-11-09 09:10:45 -0800 |
commit | 72f76f73642fa8528cab098b5f66abb299f1a018 (patch) | |
tree | dfc92172edf7700f2b7d889933d32aee326c1956 /fs/xfs/scrub/dir.c | |
parent | 0a1e1567b386b96c710d385181330c13ca03ffe3 (diff) |
xfs: fix uninitialized return values in scrub code
Fix smatch complaints about uninitialized return codes.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/scrub/dir.c')
-rw-r--r-- | fs/xfs/scrub/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/scrub/dir.c b/fs/xfs/scrub/dir.c index c8ca3fd67445..69e1efdd4019 100644 --- a/fs/xfs/scrub/dir.c +++ b/fs/xfs/scrub/dir.c @@ -748,7 +748,7 @@ xfs_scrub_directory( }; size_t bufsize; loff_t oldpos; - int error; + int error = 0; if (!S_ISDIR(VFS_I(sc->ip)->i_mode)) return -ENOENT; |