diff options
author | Mariusz Kozlowski <m.kozlowski@tuxland.pl> | 2007-01-02 06:38:36 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-01-24 05:13:57 -0500 |
commit | 6690faeb3537fe34950bdc3e10fa14ce4102c92f (patch) | |
tree | fb9293119eac339f58cd644c50b5465469f104f6 /arch/powerpc/kernel/vio.c | |
parent | b1374051433cc252540058e8a90107c90fa23eb4 (diff) |
[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>
Diffstat (limited to 'arch/powerpc/kernel/vio.c')
-rw-r--r-- | arch/powerpc/kernel/vio.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/powerpc/kernel/vio.c b/arch/powerpc/kernel/vio.c index a80f8f1d2e5d..2968ffeafdb6 100644 --- a/arch/powerpc/kernel/vio.c +++ b/arch/powerpc/kernel/vio.c | |||
@@ -199,10 +199,8 @@ EXPORT_SYMBOL(vio_unregister_driver); | |||
199 | /* vio_dev refcount hit 0 */ | 199 | /* vio_dev refcount hit 0 */ |
200 | static void __devinit vio_dev_release(struct device *dev) | 200 | static void __devinit vio_dev_release(struct device *dev) |
201 | { | 201 | { |
202 | if (dev->archdata.of_node) { | 202 | /* XXX should free TCE table */ |
203 | /* XXX should free TCE table */ | 203 | of_node_put(dev->archdata.of_node); |
204 | of_node_put(dev->archdata.of_node); | ||
205 | } | ||
206 | kfree(to_vio_dev(dev)); | 204 | kfree(to_vio_dev(dev)); |
207 | } | 205 | } |
208 | 206 | ||