git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[TIPC]: Update version to 1.6.3
[safe/jmp/linux-2.6]
/
net
/
tipc
/
msg.h
diff --git
a/net/tipc/msg.h
b/net/tipc/msg.h
index
88a2ee0
..
6ad070d
100644
(file)
--- a/
net/tipc/msg.h
+++ b/
net/tipc/msg.h
@@
-70,8
+70,10
@@
static inline void msg_set_bits(struct tipc_msg *m, u32 w,
u32 pos, u32 mask, u32 val)
{
val = (val & mask) << pos;
- m->hdr[w] &= ~htonl(mask << pos);
- m->hdr[w] |= htonl(val);
+ val = htonl(val);
+ mask = htonl(mask << pos);
+ m->hdr[w] &= ~mask;
+ m->hdr[w] |= val;
}
/*