crypto: bcm - Drop unused setting of local 'ptr' variable
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sat, 4 Jan 2025 20:55:02 +0000 (21:55 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 14 Jan 2025 03:31:13 +0000 (11:31 +0800)
commit1742b0a0e4668763066fab5fa76d071c1ac92648
tree25e9ad78ede298f16dce979fa5b2725fb6b05276
parent061b27e37238d374d8a6954b22d9c5d07c5db574
crypto: bcm - Drop unused setting of local 'ptr' variable

spum_cipher_req_init() assigns 'spu_hdr' to local 'ptr' variable and
later increments 'ptr' over specific fields like it was meant to point
to pieces of message for some purpose.  However the code does not read
'ptr' at all thus this entire iteration over 'spu_hdr' seams pointless.

Reported by clang W=1 build:

  drivers/crypto/bcm/spu.c:839:6: error: variable 'ptr' set but not used [-Werror,-Wunused-but-set-variable]

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/bcm/spu.c