diff --git a/fs/dcache.c b/fs/dcache.c index 16521a9f203859a28a8804d3fb2f5f4cb894ed7f..fbee67b92651006807b8b385c57c31fa3e210a0c 100644 --- a/fs/dcache.c +++ b/fs/dcache.c @@ -2109,7 +2109,7 @@ void d_delete(struct dentry * dentry) inode = dentry->d_inode; isdir = S_ISDIR(inode->i_mode); if (dentry->d_count == 1) { - if (inode && !spin_trylock(&inode->i_lock)) { + if (!spin_trylock(&inode->i_lock)) { spin_unlock(&dentry->d_lock); cpu_relax(); goto again;