diff options
author | Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com> | 2016-03-21 08:49:39 (GMT) |
---|---|---|
committer | York Sun <york.sun@nxp.com> | 2016-03-21 19:42:15 (GMT) |
commit | 6dedcedd6442295428ea7f02b0d30739499858a2 (patch) | |
tree | c67ebb24359dcb480fcbff75d7ba0b65ab666a6c /drivers/net | |
parent | ceded371c8a328cd41cdf55292206e0efb96c660 (diff) | |
download | u-boot-6dedcedd6442295428ea7f02b0d30739499858a2.tar.xz |
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>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/fsl-mc/mc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/fsl-mc/mc.c b/drivers/net/fsl-mc/mc.c index 53c4966..f83bd0c 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) { |