Skip to content

Commit

Permalink
[POWERPC] arch/powerpc/kernel/vio.c of_node_put cleanup
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mariusz Kozlowski authored and Paul Mackerras committed Jan 24, 2007
1 parent b137405 commit 6690fae
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions arch/powerpc/kernel/vio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down

0 comments on commit 6690fae

Please sign in to comment.