From: Julia Lawall Date: Fri, 8 Aug 2014 10:07:48 +0000 (+0200) Subject: powerpc/gamecube/wii: delete unneeded test before of_node_put X-Git-Tag: v3.19-rc1~116^2~32 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=6609ed14de75bde7a99b33e9be9f1873da91f07d;p=~emulex%2Finfiniband.git 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 Signed-off-by: Michael Ellerman --- diff --git a/arch/powerpc/platforms/embedded6xx/usbgecko_udbg.c b/arch/powerpc/platforms/embedded6xx/usbgecko_udbg.c index 20a8ed91962..7feb325b636 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; }