diff options
author | Dan Carpenter <[email protected]> | 2010-08-10 18:02:04 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2010-08-11 08:59:06 -0700 |
commit | 5fc79d85d2ab7ce144bc75e06cab58126249afbb (patch) | |
tree | f6c4ca70e3905cbec541d925f4199c020fa61d8b | |
parent | 89596f20bb5f0f32c37abd337d995080e04519c8 (diff) |
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 <[email protected]>
Cc: Ian Kent <[email protected]>
Cc: Al Viro <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r-- | fs/autofs4/root.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/autofs4/root.c b/fs/autofs4/root.c index 48e056e70fd6..cb1bd38dc08c 100644 --- a/fs/autofs4/root.c +++ b/fs/autofs4/root.c @@ -204,8 +204,7 @@ static int try_to_fill_dentry(struct dentry *dentry, int flags) } /* Initialize expiry counter after successful mount */ - if (ino) - ino->last_used = jiffies; + ino->last_used = jiffies; spin_lock(&sbi->fs_lock); ino->flags &= ~AUTOFS_INF_PENDING; |