Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 47f9dbd3 authored by Al Viro's avatar Al Viro
Browse files

do_last(): get rid of duplicate ELOOP check



may_open() will catch it

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 55db2fd9
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -3195,10 +3195,6 @@ static int do_last(struct nameidata *nd,
		return error;
	}
	audit_inode(nd->name, nd->path.dentry, 0);
	if (unlikely(d_is_symlink(nd->path.dentry))) {
		error = -ELOOP;
		goto out;
	}
	error = -EISDIR;
	if ((open_flag & O_CREAT) && d_is_dir(nd->path.dentry))
		goto out;