projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec6b486
)
tipc: endianness annotations
author
Al Viro
<viro@zeniv.linux.org.uk>
Sun, 27 Apr 2008 05:42:14 +0000
(22:42 -0700)
committer
David S. Miller
<davem@davemloft.net>
Sun, 27 Apr 2008 21:26:49 +0000
(14:26 -0700)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/msg.h
patch
|
blob
|
blame
|
history
diff --git
a/net/tipc/msg.h
b/net/tipc/msg.h
index 6ad070d87702b6f09a4d1da40930aca10f862829..ad487e8abcc2f2f0bcada4432db6c25e8dbf0dee 100644
(file)
--- a/
net/tipc/msg.h
+++ b/
net/tipc/msg.h
@@
-70,10
+70,9
@@
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;
+ mask = mask << pos;
+ m->hdr[w] &= ~htonl(mask);
+ m->hdr[w] |= htonl(val);
}
/*