]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcb508665167c3651f18b8c760759ecda39e66917
treed795e257a7a540c828e4b3827d8b3b1af2b30637
parent8c1a39b5976426ecb96cfb69b8ba4b19a8c76334
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