Skip to content

Commit 964d32e

Browse files
author
Miklos Szeredi
committed
fuse: clean up error exits in fuse_fill_super()
Instead of "goto err", return error directly, since there's no error cleanup to do now. Signed-off-by: Miklos Szeredi <[email protected]>
1 parent 80019f1 commit 964d32e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

fs/fuse/inode.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1566,22 +1566,18 @@ static int fuse_fill_super(struct super_block *sb, struct fs_context *fsc)
15661566
* Require mount to happen from the same user namespace which
15671567
* opened /dev/fuse to prevent potential attacks.
15681568
*/
1569-
err = -EINVAL;
15701569
if ((ctx->file->f_op != &fuse_dev_operations) ||
15711570
(ctx->file->f_cred->user_ns != sb->s_user_ns))
1572-
goto err;
1571+
return -EINVAL;
15731572
ctx->fudptr = &ctx->file->private_data;
15741573

15751574
err = fuse_fill_super_common(sb, ctx);
15761575
if (err)
1577-
goto err;
1576+
return err;
15781577
/* file->private_data shall be visible on all CPUs after this */
15791578
smp_mb();
15801579
fuse_send_init(get_fuse_mount_super(sb));
15811580
return 0;
1582-
1583-
err:
1584-
return err;
15851581
}
15861582

15871583
/*

0 commit comments

Comments
 (0)