diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2014-08-08 06:07:48 -0400 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2014-11-09 17:59:35 -0500 |
commit | 6609ed14de75bde7a99b33e9be9f1873da91f07d (patch) | |
tree | d7a9a840854170c4d14b85bc8cb56ca6cd2df65c | |
parent | 498b65147247f61f3f7f4deb35484ff98556e798 (diff) |
powerpc/gamecube/wii: delete unneeded test before of_node_put
Simplify the error path to avoid calling of_node_put when it is not needed.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
-rw-r--r-- | arch/powerpc/platforms/embedded6xx/usbgecko_udbg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/platforms/embedded6xx/usbgecko_udbg.c b/arch/powerpc/platforms/embedded6xx/usbgecko_udbg.c index 20a8ed91962e..7feb325b636b 100644 --- a/arch/powerpc/platforms/embedded6xx/usbgecko_udbg.c +++ b/arch/powerpc/platforms/embedded6xx/usbgecko_udbg.c | |||
@@ -247,7 +247,7 @@ void __init ug_udbg_init(void) | |||
247 | np = of_find_compatible_node(NULL, NULL, "nintendo,flipper-exi"); | 247 | np = of_find_compatible_node(NULL, NULL, "nintendo,flipper-exi"); |
248 | if (!np) { | 248 | if (!np) { |
249 | udbg_printf("%s: EXI node not found\n", __func__); | 249 | udbg_printf("%s: EXI node not found\n", __func__); |
250 | goto done; | 250 | goto out; |
251 | } | 251 | } |
252 | 252 | ||
253 | exi_io_base = ug_udbg_setup_exi_io_base(np); | 253 | exi_io_base = ug_udbg_setup_exi_io_base(np); |
@@ -267,8 +267,8 @@ void __init ug_udbg_init(void) | |||
267 | } | 267 | } |
268 | 268 | ||
269 | done: | 269 | done: |
270 | if (np) | 270 | of_node_put(np); |
271 | of_node_put(np); | 271 | out: |
272 | return; | 272 | return; |
273 | } | 273 | } |
274 | 274 | ||