Commit 7eb878ed authored by Allan Stephens's avatar Allan Stephens Committed by Paul Gortmaker

tipc: Eliminate redundant masking in message header routines

Gets rid of unnecessary masking in two routines that set TIPC message
header fields. (The msg_set_bits() routine already takes care of
masking the new value to the correct size.)
Signed-off-by: default avatarAllan Stephens <allan.stephens@windriver.com>
Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent 74d33b32
...@@ -615,7 +615,7 @@ static inline u32 msg_link_selector(struct tipc_msg *m) ...@@ -615,7 +615,7 @@ static inline u32 msg_link_selector(struct tipc_msg *m)
static inline void msg_set_link_selector(struct tipc_msg *m, u32 n) static inline void msg_set_link_selector(struct tipc_msg *m, u32 n)
{ {
msg_set_bits(m, 4, 0, 1, (n & 1)); msg_set_bits(m, 4, 0, 1, n);
} }
/* /*
...@@ -639,7 +639,7 @@ static inline u32 msg_probe(struct tipc_msg *m) ...@@ -639,7 +639,7 @@ static inline u32 msg_probe(struct tipc_msg *m)
static inline void msg_set_probe(struct tipc_msg *m, u32 val) static inline void msg_set_probe(struct tipc_msg *m, u32 val)
{ {
msg_set_bits(m, 5, 0, 1, (val & 1)); msg_set_bits(m, 5, 0, 1, val);
} }
static inline char msg_net_plane(struct tipc_msg *m) static inline char msg_net_plane(struct tipc_msg *m)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment