mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-05 22:12:16 +00:00
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:
parent
704eae1f32
commit
582ee43dad
5 changed files with 10 additions and 12 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue