crypto: talitos - static code checker fixes
authorHoria Geant? <horia.geanta@freescale.com>
Mon, 11 May 2015 17:04:56 +0000 (20:04 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 13 May 2015 02:31:57 +0000 (10:31 +0800)
commit42e8b0d7fed0628e21ec93e8cd547aef616e68f7
treee004f86bc55d0faa641a7f520df01319bc7e24ae
parentbde9079f3cd5e4275be2169cf7b0c74bfb464f78
crypto: talitos - static code checker fixes

-change req_ctx->nbuf from u64 to unsigned int to silence checker
warnings; this is safe since nbuf value is <= HASH_MAX_BLOCK_SIZE
-remove unused value read from TALITOS_CCPSR; there is no requirement
to read upper 32b before reading lower 32b of a 64b register;
SEC RM mentions: "reads can always be done by byte, word, or dword"
-remove unused return value of sg_to_link_tbl()
-change "len" parameter of map_single_talitos_ptr() and
to_talitos_ptr_len() to unsigned int; later, cpu_to_be16 will __force
downcast the value to unsigned short without any checker warning

Signed-off-by: Horia Geanta <horia.geanta@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/talitos.c