net/* misc endianness annotations

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Al Viro 2007-07-26 17:33:39 +01:00 committed by Linus Torvalds
parent 704eae1f32
commit 582ee43dad
5 changed files with 10 additions and 12 deletions

View file

@ -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);
}
/*