commit | becf3da20eca82e06607b9813cc3b592b359bae5 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Sat Apr 26 22:42:14 2008 -0700 |
committer | David S. Miller <davem@davemloft.net> | Sun Apr 27 14:26:49 2008 -0700 |
tree | 89693ca2c5739deb61dceed36f129c77dfed5b0f | |
parent | ec6b486fa9f6d20bfbaebba1db88bfe9d390ab1a [diff] [blame] |
tipc: endianness annotations Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
diff --git a/net/tipc/msg.h b/net/tipc/msg.h index 6ad070d..ad487e8 100644 --- a/net/tipc/msg.h +++ b/net/tipc/msg.h
@@ -70,10 +70,9 @@ 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; + mask = mask << pos; + m->hdr[w] &= ~htonl(mask); + m->hdr[w] |= htonl(val); } /*