Commit 1742b0a
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 <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>1 parent 061b27e commit 1742b0a
1 file changed
+1
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
836 | 836 | | |
837 | 837 | | |
838 | 838 | | |
839 | | - | |
840 | 839 | | |
841 | 840 | | |
842 | 841 | | |
| |||
847 | 846 | | |
848 | 847 | | |
849 | 848 | | |
850 | | - | |
851 | 849 | | |
852 | 850 | | |
853 | 851 | | |
| |||
861 | 859 | | |
862 | 860 | | |
863 | 861 | | |
864 | | - | |
865 | | - | |
| 862 | + | |
866 | 863 | | |
867 | | - | |
868 | 864 | | |
869 | 865 | | |
870 | 866 | | |
| |||
873 | 869 | | |
874 | 870 | | |
875 | 871 | | |
876 | | - | |
877 | 872 | | |
878 | 873 | | |
879 | 874 | | |
| |||
0 commit comments