mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[PATCH] lib/sha1.c: fix sparse warning
lib/sha1.c:44:10: warning: cast to restricted type Signed-off-by: Alexey Dobriyan <[email protected]> Signed-off-by: Domen Puncer <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
ae49fe8655
commit
23712b2fbf
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ void sha_transform(__u32 *digest, const char *in, __u32 *W)
|
|||
__u32 a, b, c, d, e, t, i;
|
||||
|
||||
for (i = 0; i < 16; i++)
|
||||
W[i] = be32_to_cpu(((const __u32 *)in)[i]);
|
||||
W[i] = be32_to_cpu(((const __be32 *)in)[i]);
|
||||
|
||||
for (i = 0; i < 64; i++)
|
||||
W[i+16] = rol32(W[i+13] ^ W[i+8] ^ W[i+2] ^ W[i], 1);
|
||||
|
|
|
|||
Loading…
Reference in a new issue