crypto: caam - remove unreachable code in report_ccb_status()
authorHoria Geantă <horia.geanta@nxp.com>
Wed, 9 Nov 2016 08:46:19 +0000 (10:46 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 13 Nov 2016 09:45:12 +0000 (17:45 +0800)
commit9305dff7ab8b5e1aef2c4c5c733ce7e1dc345433
tree7ae794af85f3c3eee2e27efe180b6bbd63083b83
parent4ca7c7d8fea1ffdc36df33578c1e68d0d6367b0c
crypto: caam - remove unreachable code in report_ccb_status()

ERRID is a 4-bit field.
Since err_id values are in [0..15] and err_id_list array size is 16,
the condition "err_id < ARRAY_SIZE(err_id_list)" is always true.

Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/error.c