From 582ee43dad8e411513a74f2d801255dcffc6d29e Mon Sep 17 00:00:00 2001 From: Al Viro Date: Thu, 26 Jul 2007 17:33:39 +0100 Subject: net/* misc endianness annotations Signed-off-by: Al Viro Signed-off-by: Linus Torvalds --- net/tipc/msg.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'net/tipc') diff --git a/net/tipc/msg.h b/net/tipc/msg.h index 35d5ba1d4f42..ce2659836374 100644 --- a/net/tipc/msg.h +++ b/net/tipc/msg.h @@ -72,10 +72,8 @@ static inline void msg_set_bits(struct tipc_msg *m, u32 w, u32 pos, u32 mask, u32 val) { val = (val & mask) << pos; - val = htonl(val); - mask = htonl(mask << pos); - m->hdr[w] &= ~mask; - m->hdr[w] |= val; + m->hdr[w] &= ~htonl(mask << pos); + m->hdr[w] |= htonl(val); } /* -- cgit v1.2.3-70-g09d2