summaryrefslogtreecommitdiff
path: root/drivers/crypto/caam/key_gen.c
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2014-04-24 20:05:12 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2014-05-08 21:58:06 +0800
commitfa9659cd4d3f40cead6263986cc235f3e67ab872 (patch)
treec052231b590336ebbc2cc068c1886ba51708021f /drivers/crypto/caam/key_gen.c
parent9f84951fc6f30eff20567632131c38725705753d (diff)
crypto: caam - Contain caam_jr_strstatus() ugliness
The tentacles of this function were firmly attached to various places in the CAAM code. Just cut them, or this cthulhu function will sprout them anew. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Herbert Xu <herbert@gondor.apana.org.au> Cc: Horia Geanta <horia.geanta@freescale.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/caam/key_gen.c')
-rw-r--r--drivers/crypto/caam/key_gen.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/crypto/caam/key_gen.c b/drivers/crypto/caam/key_gen.c
index ea2e406610eb..871703c49d2c 100644
--- a/drivers/crypto/caam/key_gen.c
+++ b/drivers/crypto/caam/key_gen.c
@@ -19,11 +19,8 @@ void split_key_done(struct device *dev, u32 *desc, u32 err,
dev_err(dev, "%s %d: err 0x%x\n", __func__, __LINE__, err);
#endif
- if (err) {
- char tmp[CAAM_ERROR_STR_MAX];
-
- dev_err(dev, "%08x: %s\n", err, caam_jr_strstatus(tmp, err));
- }
+ if (err)
+ caam_jr_strstatus(dev, err);
res->err = err;