Fix smatch complaints about uninitialized return codes.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
};
size_t bufsize;
loff_t oldpos;
- int error;
+ int error = 0;
if (!S_ISDIR(VFS_I(sc->ip)->i_mode))
return -ENOENT;
struct xfs_inode *dp = NULL;
xfs_nlink_t expected_nlink;
xfs_nlink_t nlink;
- int error;
+ int error = 0;
*try_again = false;
xfs_ino_t dnum;
bool try_again;
int tries = 0;
- int error;
+ int error = 0;
/*
* If we're a directory, check that the '..' link points up to