driver: net: fsl-mc: Return from DPAA_exit if boot_status !=0
Return value of get_mc_boot_status() in case of failure is not necessary to be -1. So update the error condition check. Signed-off-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com> Reported-by: Yao Yuan <yao.yuan@nxp.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com> Reviewed-by: York Sun <york.sun@nxp.com>
This commit is contained in:
parent
ceded371c8
commit
6dedcedd64
@ -1147,7 +1147,8 @@ int fsl_mc_ldpaa_exit(bd_t *bd)
|
||||
{
|
||||
int err = 0;
|
||||
|
||||
if (bd && get_mc_boot_status() == -1)
|
||||
/* MC is not loaded intentionally, So return success. */
|
||||
if (bd && get_mc_boot_status() != 0)
|
||||
return 0;
|
||||
|
||||
if (bd && !get_mc_boot_status() && get_dpl_apply_status() == -1) {
|
||||
|
Loading…
Reference in New Issue
Block a user