projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74d33b3
)
tipc: Eliminate redundant masking in message header routines
author
Allan Stephens
<
[email protected]
>
Wed, 25 May 2011 17:28:27 +0000
(13:28 -0400)
committer
Paul Gortmaker
<
[email protected]
>
Fri, 24 Jun 2011 20:18:15 +0000
(16:18 -0400)
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: Allan Stephens <
[email protected]
>
Signed-off-by: Paul Gortmaker <
[email protected]
>
net/tipc/msg.h
patch
|
blob
|
history
diff --git
a/net/tipc/msg.h
b/net/tipc/msg.h
index 11b74dc253f5bcf9a56eaabf3ad4bdedc3709d2b..a58975ced222c6902de966cbc439e2e81507bf5a 100644
(file)
--- a/
net/tipc/msg.h
+++ b/
net/tipc/msg.h
@@
-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)
{
- 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)
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)