crypto: caam - Implement fast-path for error codes with no handler
authorMarek Vasut <marex@denx.de>
Thu, 24 Apr 2014 18:05:14 +0000 (20:05 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 8 May 2014 13:58:07 +0000 (21:58 +0800)
commit867e1ee395d845f49ae280c3d8f5271b214fa7e4
tree7f8684e1655142155c7060cfb42132f0e9af0b62
parent9724d7adbb34b067b844b97599c1a5905229aa2b
crypto: caam - Implement fast-path for error codes with no handler

Implement fast-path error code printout for errors with no associated
handler function. This reduces calls to this kmalloc() nonsense in
SPRINTFCAT() already.

Note that the format of output is compatible with the old code, even
if -- exposed like this -- it looks a bit weird. Checkpatch complains
on this one as well.

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>
drivers/crypto/caam/error.c