driver: net: fsl-mc: Return from DPAA_exit if boot_status !=0
authorPrabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Mon, 21 Mar 2016 08:49:39 +0000 (14:19 +0530)
committerYork Sun <york.sun@nxp.com>
Mon, 21 Mar 2016 19:42:15 +0000 (12:42 -0700)
commit6dedcedd6442295428ea7f02b0d30739499858a2
treec67ebb24359dcb480fcbff75d7ba0b65ab666a6c
parentceded371c8a328cd41cdf55292206e0efb96c660
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>
drivers/net/fsl-mc/mc.c