From: Prabhakar Kushwaha Date: Mon, 21 Mar 2016 08:49:39 +0000 (+0530) Subject: driver: net: fsl-mc: Return from DPAA_exit if boot_status !=0 X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=6dedcedd6442295428ea7f02b0d30739499858a2;p=u-boot.git 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 Reported-by: Yao Yuan Acked-by: Joe Hershberger Reviewed-by: York Sun --- diff --git a/drivers/net/fsl-mc/mc.c b/drivers/net/fsl-mc/mc.c index 53c4966c33..f83bd0c7f0 100644 --- a/drivers/net/fsl-mc/mc.c +++ b/drivers/net/fsl-mc/mc.c @@ -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) {