fsl-layerscape: fix warning if no hwconfig is defined
authorPankaj Bansal <pankaj.bansal@nxp.com>
Thu, 31 Oct 2019 05:41:09 +0000 (05:41 +0000)
committerPriyanka Jain <priyanka.jain@nxp.com>
Fri, 8 Nov 2019 10:20:12 +0000 (15:50 +0530)
commit812ff53c3e0f100aabb45eaea9b71086d00bed66
treee3046c35ea6dd428da99755a720729364dccac31
parent29a6617ada631c1f86512028218491e3c15500cc
fsl-layerscape: fix warning if no hwconfig is defined

While getting the 'subarg' of 'hwconfig' env variable in
config_core_prefetch(), if no hwconfig variable is defined,
below warning is received:
WARNING: Calling __hwconfig without a buffer and
before environment is ready

Fix this by checking 'hwconfig' env variable.
If not found return without further processing.

Signed-off-by: Pankaj Bansal <pankaj.bansal@nxp.com>
Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
Tested-by: Michael Walle <michael@walle.cc>
arch/arm/cpu/armv8/fsl-layerscape/cpu.c