]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit517ce987dbf1296cd12853c91ac1ab45802c8643
tree25668f0037fc86290c15dca09dfbe867affa3a03
parent4b0f083811ecda8c03f7b0c5ef3da37c059ed7fc
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