2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/drivers/crypto/bcm
Krzysztof Kozlowski 1742b0a0e4 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>
2025-01-14 11:31:13 +08:00
..
cipher.c crypto: bcm - add error check in the ahash_hmac_init function 2024-11-15 19:52:51 +08:00
cipher.h crypto: bcm - Use subrequest for fallback 2023-01-27 18:58:09 +08:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
spu2.c crypto: bcm - Fix pointer arithmetic 2024-04-02 10:49:39 +08:00
spu2.h crypto: bcm - Fix sparse warnings 2021-01-22 14:58:01 +11:00
spu.c crypto: bcm - Drop unused setting of local 'ptr' variable 2025-01-14 11:31:13 +08:00
spu.h crypto: sha - split sha.h into sha1.h and sha2.h 2020-11-20 14:45:33 +11:00
spum.h crypto: bcm - Fix sparse warnings 2021-01-22 14:58:01 +11:00
util.c crypto: bcm - Fix a whole host of kernel-doc misdemeanours 2021-03-26 20:02:35 +11:00
util.h crypto: bcm - Fix sparse warnings 2021-01-22 14:58:01 +11:00