ARM: mm: clean up initrd initialisation
authorRussell King <rmk+kernel@armlinux.org.uk>
Mon, 16 Jan 2017 15:13:25 +0000 (15:13 +0000)
committerRussell King <rmk+kernel@armlinux.org.uk>
Tue, 28 Feb 2017 11:06:21 +0000 (11:06 +0000)
commit68b32f361f3892fc376051b1702954b2dc692d13
treee2ecf74be02543508d7028bd244973cd0f1ffded
parent3928624812dcfa39b6a67f9de46efcb51c573ad0
ARM: mm: clean up initrd initialisation

Rather than repeatedly testing phys_initrd_size to see if the initrd
is still enabled, return from the new function to avoid executing the
remaining initialisation.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/mm/init.c