axonram: Return directly after a failed kzalloc() in axon_ram_probe()
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 3 Aug 2017 18:23:57 +0000 (20:23 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 1 Sep 2017 06:42:56 +0000 (16:42 +1000)
commitfdbb9457b4e1d3a6deb3325bba7616334f371be7
treed795e257a7a540c828e4b3827d8b3b1af2b30637
parenta1bddf3991573f3dff2762bfca5e113f19889d5a
axonram: Return directly after a failed kzalloc() in axon_ram_probe()

* Return directly after a call of the function "kzalloc" failed
  at the beginning.

* Delete a repeated check for the local variable "bank"
  which became unnecessary with this refactoring.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/sysdev/axonram.c