Fix possibly uninitialized 'root_inode' variable warning
Resolve an uninitialized variable warning when compiling. In function ‘zfs_domount’: warning: ‘root_inode’ may be used uninitialized in this function [-Wmaybe-uninitialized] sb->s_root = d_make_root(root_inode); Reviewed-by: Tony Hutter <hutter2@llnl.gov> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #11306
This commit is contained in:
parent
aa5b9e1d7c
commit
f217a2b902
|
@ -1451,7 +1451,7 @@ int
|
||||||
zfs_domount(struct super_block *sb, zfs_mnt_t *zm, int silent)
|
zfs_domount(struct super_block *sb, zfs_mnt_t *zm, int silent)
|
||||||
{
|
{
|
||||||
const char *osname = zm->mnt_osname;
|
const char *osname = zm->mnt_osname;
|
||||||
struct inode *root_inode;
|
struct inode *root_inode = NULL;
|
||||||
uint64_t recordsize;
|
uint64_t recordsize;
|
||||||
int error = 0;
|
int error = 0;
|
||||||
zfsvfs_t *zfsvfs = NULL;
|
zfsvfs_t *zfsvfs = NULL;
|
||||||
|
|
Loading…
Reference in New Issue