From: Aneesh Bansal Date: Thu, 11 Feb 2016 09:06:51 +0000 (+0530) Subject: drivers/crypto/fsl: correct error checking in run_descriptor X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=6178e9597806033529fdd52c1678f3a7c92510d5;p=u-boot.git drivers/crypto/fsl: correct error checking in run_descriptor When CAAM runs a descriptor and an error occurs, a non-zero value is set in Output Status Register. The if condition should check the status for a non-zero value. Signed-off-by: Aneesh Bansal Reviewed-by: York Sun --- diff --git a/drivers/crypto/fsl/jr.c b/drivers/crypto/fsl/jr.c index b766470ce2..93c24712d1 100644 --- a/drivers/crypto/fsl/jr.c +++ b/drivers/crypto/fsl/jr.c @@ -360,7 +360,7 @@ int run_descriptor_jr(uint32_t *desc) } } - if (!op.status) { + if (op.status) { debug("Error %x\n", op.status); ret = op.status; }