powerpc/4xx/cpm: delete unneeded test before of_node_put
authorJulia Lawall <Julia.Lawall@lip6.fr>
Fri, 8 Aug 2014 10:07:44 +0000 (12:07 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 9 Nov 2014 22:59:34 +0000 (09:59 +1100)
commit0f9da5cb746581ae2de120c78a8afe29fb594fe4
tree5891cd0e09aef023ab5c4158345213fff1d1bae5
parent20f1aae6cb0120fa54c0fe81614f6983df3b420a
powerpc/4xx/cpm: 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>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/sysdev/ppc4xx_cpm.c