[POWERPC] arch/powerpc/kernel/vio.c of_node_put cleanup
authorMariusz Kozlowski <m.kozlowski@tuxland.pl>
Tue, 2 Jan 2007 11:38:36 +0000 (12:38 +0100)
committerPaul Mackerras <paulus@samba.org>
Wed, 24 Jan 2007 10:13:57 +0000 (21:13 +1100)
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>
arch/powerpc/kernel/vio.c

index a80f8f1d2e5d9e1062562614dd87b6fe7e5614f7..2968ffeafdb68c06f6d1d7ff96dfa8e4bab4578d 100644 (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));
 }