diff options
Diffstat (limited to 'net/tipc/msg.h')
| -rw-r--r-- | net/tipc/msg.h | 6 | 
1 files changed, 2 insertions, 4 deletions
diff --git a/net/tipc/msg.h b/net/tipc/msg.h index 35d5ba1d4f4..ce265983637 100644 --- a/net/tipc/msg.h +++ b/net/tipc/msg.h @@ -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);  }  /*  |