Skip to contentSkip to conversation

autofs4: remove unneeded null check in try_to_fill_dentry()

PATCH New Dan Carpenter 1 participant 1 message Jun 1, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 autofs4: remove unneeded null check in try_to_fill_dentry()

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

fs/autofs4/root.c +1 -2
index db4117e..5c0b93f 100644
@@ -198,8 +198,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;