projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
098a209
)
rxrpc: rxkad: Casts are needed when comparing be32 values
author
David Howells
<dhowells@redhat.com>
Fri, 4 Mar 2016 15:59:13 +0000
(15:59 +0000)
committer
David Howells
<dhowells@redhat.com>
Fri, 4 Mar 2016 15:59:13 +0000
(15:59 +0000)
Forced casts are needed to avoid sparse warning when directly comparing
be32 values.
Signed-off-by: David Howells <dhowells@redhat.com>
net/rxrpc/rxkad.c
patch
|
blob
|
blame
|
history
diff --git
a/net/rxrpc/rxkad.c
b/net/rxrpc/rxkad.c
index ca746f382517d3dc0229b79c6ef6f922d034b09d..3106a0c4960be7db6e726ab70bf1ed6b891b9c2f 100644
(file)
--- a/
net/rxrpc/rxkad.c
+++ b/
net/rxrpc/rxkad.c
@@
-142,7
+142,7
@@
static void rxkad_prime_packet_security(struct rxrpc_connection *conn)
crypto_blkcipher_encrypt_iv(&desc, &sg[0], &sg[1], sizeof(tmpbuf));
memcpy(&conn->csum_iv, &tmpbuf.x[2], sizeof(conn->csum_iv));
- ASSERTCMP(
conn->csum_iv.n[0], ==,
tmpbuf.x[2]);
+ ASSERTCMP(
(u32 __force)conn->csum_iv.n[0], ==, (u32 __force)
tmpbuf.x[2]);
_leave("");
}