diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2014-08-08 14:07:48 +0400 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2014-11-10 01:59:35 +0300 |
commit | 6609ed14de75bde7a99b33e9be9f1873da91f07d (patch) | |
tree | d7a9a840854170c4d14b85bc8cb56ca6cd2df65c /arch/powerpc/platforms/embedded6xx | |
parent | 498b65147247f61f3f7f4deb35484ff98556e798 (diff) | |
download | linux-6609ed14de75bde7a99b33e9be9f1873da91f07d.tar.xz |
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>
Diffstat (limited to 'arch/powerpc/platforms/embedded6xx')
-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) np = of_find_compatible_node(NULL, NULL, "nintendo,flipper-exi"); if (!np) { udbg_printf("%s: EXI node not found\n", __func__); - goto done; + goto out; } exi_io_base = ug_udbg_setup_exi_io_base(np); @@ -267,8 +267,8 @@ void __init ug_udbg_init(void) } done: - if (np) - of_node_put(np); + of_node_put(np); +out: return; } |