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

Remove redundant argument check for of_node_put().

Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
Mariusz Kozlowski 2007-01-02 12:38:36 +01:00 committed by Paul Mackerras
parent b137405143
commit 6690faeb35
1 changed files with 2 additions and 4 deletions

View File

@ -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));
}