提交 6690faeb 编写于 作者: M Mariusz Kozlowski 提交者: Paul Mackerras

[POWERPC] arch/powerpc/kernel/vio.c of_node_put cleanup

Remove redundant argument check for of_node_put().
Signed-off-by: NMariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: NPaul Mackerras <paulus@samba.org>
上级 b1374051
...@@ -199,10 +199,8 @@ EXPORT_SYMBOL(vio_unregister_driver); ...@@ -199,10 +199,8 @@ EXPORT_SYMBOL(vio_unregister_driver);
/* vio_dev refcount hit 0 */ /* vio_dev refcount hit 0 */
static void __devinit vio_dev_release(struct device *dev) static void __devinit vio_dev_release(struct device *dev)
{ {
if (dev->archdata.of_node) { /* XXX should free TCE table */
/* XXX should free TCE table */ of_node_put(dev->archdata.of_node);
of_node_put(dev->archdata.of_node);
}
kfree(to_vio_dev(dev)); kfree(to_vio_dev(dev));
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册