mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-03 17:40:04 +00:00
ovl: remove unneeded check for IS_ERR()
ovl_workdir_create() returns a valid index dentry or NULL. Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
This commit is contained in:
parent
961af647fc
commit
a59f97ff66
1 changed files with 0 additions and 4 deletions
|
@ -1058,10 +1058,6 @@ static int ovl_fill_super(struct super_block *sb, void *data, int silent)
|
||||||
|
|
||||||
ufs->indexdir = ovl_workdir_create(sb, ufs, workpath.dentry,
|
ufs->indexdir = ovl_workdir_create(sb, ufs, workpath.dentry,
|
||||||
OVL_INDEXDIR_NAME, true);
|
OVL_INDEXDIR_NAME, true);
|
||||||
err = PTR_ERR(ufs->indexdir);
|
|
||||||
if (IS_ERR(ufs->indexdir))
|
|
||||||
goto out_put_lower_mnt;
|
|
||||||
|
|
||||||
if (ufs->indexdir) {
|
if (ufs->indexdir) {
|
||||||
/* Verify upper root is index dir origin */
|
/* Verify upper root is index dir origin */
|
||||||
err = ovl_verify_origin(ufs->indexdir, ufs->upper_mnt,
|
err = ovl_verify_origin(ufs->indexdir, ufs->upper_mnt,
|
||||||
|
|
Loading…
Reference in a new issue