aboutsummaryrefslogtreecommitdiffstats
path: root/net/rxrpc/rxkad.c
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2007-12-11 13:55:22 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 17:58:04 -0500
commitae445d172ab4d342a0a9d64df499cca8d5ad61b3 (patch)
treec6c81b9495920ac7b4766126c4f2c77c5db41d91 /net/rxrpc/rxkad.c
parentf831e90971dc942a9f2fcc918a5739eb6d4ef4c5 (diff)
[RXRPC]: Use cpu_to_be32() where appropriate.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rxrpc/rxkad.c')
-rw-r--r--net/rxrpc/rxkad.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/rxrpc/rxkad.c b/net/rxrpc/rxkad.c
index 8e69d6993833..f48434adb7c2 100644
--- a/net/rxrpc/rxkad.c
+++ b/net/rxrpc/rxkad.c
@@ -284,7 +284,7 @@ static int rxkad_secure_packet(const struct rxrpc_call *call,
284 284
285 /* calculate the security checksum */ 285 /* calculate the security checksum */
286 x = htonl(call->channel << (32 - RXRPC_CIDSHIFT)); 286 x = htonl(call->channel << (32 - RXRPC_CIDSHIFT));
287 x |= sp->hdr.seq & __constant_cpu_to_be32(0x3fffffff); 287 x |= sp->hdr.seq & cpu_to_be32(0x3fffffff);
288 tmpbuf.x[0] = sp->hdr.callNumber; 288 tmpbuf.x[0] = sp->hdr.callNumber;
289 tmpbuf.x[1] = x; 289 tmpbuf.x[1] = x;
290 290
@@ -518,7 +518,7 @@ static int rxkad_verify_packet(const struct rxrpc_call *call,
518 518
519 /* validate the security checksum */ 519 /* validate the security checksum */
520 x = htonl(call->channel << (32 - RXRPC_CIDSHIFT)); 520 x = htonl(call->channel << (32 - RXRPC_CIDSHIFT));
521 x |= sp->hdr.seq & __constant_cpu_to_be32(0x3fffffff); 521 x |= sp->hdr.seq & cpu_to_be32(0x3fffffff);
522 tmpbuf.x[0] = call->call_id; 522 tmpbuf.x[0] = call->call_id;
523 tmpbuf.x[1] = x; 523 tmpbuf.x[1] = x;
524 524