diff options
author | Aneesh Bansal <aneesh.bansal@nxp.com> | 2016-02-11 09:06:51 (GMT) |
---|---|---|
committer | York Sun <york.sun@nxp.com> | 2016-03-21 19:42:11 (GMT) |
commit | 6178e9597806033529fdd52c1678f3a7c92510d5 (patch) | |
tree | 135f50b9a56ea4181c32d7ae6228d1e372d8f410 /drivers/crypto/fsl | |
parent | abc7d0f75c078524f713cb2d4b4efe1b1a122c60 (diff) | |
download | u-boot-6178e9597806033529fdd52c1678f3a7c92510d5.tar.xz |
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 <aneesh.bansal@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'drivers/crypto/fsl')
-rw-r--r-- | drivers/crypto/fsl/jr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/fsl/jr.c b/drivers/crypto/fsl/jr.c index b766470..93c2471 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; } |