Commit 6690faeb authored by Mariusz Kozlowski's avatar Mariusz Kozlowski Committed by Paul Mackerras
Browse files

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



Remove redundant argument check for of_node_put().
Signed-off-by: default avatarMariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent b1374051
......@@ -199,10 +199,8 @@ EXPORT_SYMBOL(vio_unregister_driver);
/* vio_dev refcount hit 0 */
static void __devinit vio_dev_release(struct device *dev)
{
if (dev->archdata.of_node) {
/* XXX should free TCE table */
of_node_put(dev->archdata.of_node);
}
/* XXX should free TCE table */
of_node_put(dev->archdata.of_node);
kfree(to_vio_dev(dev));
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment