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

Commit 5fc79d85 authored by Dan Carpenter's avatar Dan Carpenter Committed by Linus Torvalds
Browse files

autofs4: remove unneeded null check in try_to_fill_dentry()



After 97e7449a: "autofs4: fix indirect mount pending expire race" we no
longer assumed that "ino" can be null.  The other null checks got removed
but this was one was missed.

Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Cc: Ian Kent <raven@themaw.net>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 89596f20
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -204,7 +204,6 @@ static int try_to_fill_dentry(struct dentry *dentry, int flags)
	}

	/* Initialize expiry counter after successful mount */
	if (ino)
	ino->last_used = jiffies;

	spin_lock(&sbi->fs_lock);