crypto: chelsio - remove redundant assignments to reqctx and dst_size
authorColin Ian King <colin.king@canonical.com>
Thu, 9 Nov 2017 08:54:13 +0000 (08:54 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 29 Nov 2017 05:43:48 +0000 (16:43 +1100)
commitd7fc6cfdf1efaafbd708c08f0be44d71bb9f7fde
tree25668f0037fc86290c15dca09dfbe867affa3a03
parent0c2616a7d9d2d3b35507258b730e0fa76c5bf09d
crypto: chelsio - remove redundant assignments to reqctx and dst_size

Pointer reqctx is assigned the same value twice, once on initialization
and again a few statements later, remove the second redundant assignment.
Variable dst_size is assigned but it is never read, so the variable is
redundant and can be removed. Cleans up clang warnings:

drivers/crypto/chelsio/chcr_algo.c:156:29: warning: Value stored to
'reqctx' during its initialization is never read
drivers/crypto/chelsio/chcr_algo.c:2020:2: warning: Value stored to
'dst_size' is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/chelsio/chcr_algo.c