Commit 5fc79d85d2ab7ce144bc75e06cab58126249afbb

Authored by Dan Carpenter
Committed by Linus Torvalds
1 parent 89596f20bb

autofs4: remove unneeded null check in try_to_fill_dentry()

After 97e7449a7ad: "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: Dan Carpenter <error27@gmail.com>
Cc: Ian Kent <raven@themaw.net>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff

... ... @@ -204,8 +204,7 @@
204 204 }
205 205  
206 206 /* Initialize expiry counter after successful mount */
207   - if (ino)
208   - ino->last_used = jiffies;
  207 + ino->last_used = jiffies;
209 208  
210 209 spin_lock(&sbi->fs_lock);
211 210 ino->flags &= ~AUTOFS_INF_PENDING;