提交 147ce699 编写于 作者: A Al Viro

proc_fill_cache(): kill pointless check

we'd just checked that child->d_inode is non-NULL, for fuck sake!
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 338b2f57
...@@ -1710,10 +1710,8 @@ bool proc_fill_cache(struct file *file, struct dir_context *ctx, ...@@ -1710,10 +1710,8 @@ bool proc_fill_cache(struct file *file, struct dir_context *ctx,
if (!child || IS_ERR(child) || !child->d_inode) if (!child || IS_ERR(child) || !child->d_inode)
goto end_instantiate; goto end_instantiate;
inode = child->d_inode; inode = child->d_inode;
if (inode) {
ino = inode->i_ino; ino = inode->i_ino;
type = inode->i_mode >> 12; type = inode->i_mode >> 12;
}
dput(child); dput(child);
end_instantiate: end_instantiate:
if (!ino) if (!ino)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册