Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
+2 −4
Original line number Original line Diff line number Diff line
@@ -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));
}
}