diff options
author | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 2007-12-11 13:51:03 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 17:58:00 -0500 |
commit | 91c5ec3ed184b7ca08314457b6e202e3d2cfb65f (patch) | |
tree | e01d0cf72ad058bcdfa377de4650b8d0375ebe26 /net/bridge/br_input.c | |
parent | 6179983ad30c43313e153b35af52bd9ebd7745c3 (diff) |
[BRIDGE]: Use cpu_to_be16() where appropriate.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_input.c')
-rw-r--r-- | net/bridge/br_input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bridge/br_input.c b/net/bridge/br_input.c index 0ee79a726d91..255c00f60ce7 100644 --- a/net/bridge/br_input.c +++ b/net/bridge/br_input.c | |||
@@ -109,7 +109,7 @@ static inline int is_link_local(const unsigned char *dest) | |||
109 | { | 109 | { |
110 | __be16 *a = (__be16 *)dest; | 110 | __be16 *a = (__be16 *)dest; |
111 | static const __be16 *b = (const __be16 *)br_group_address; | 111 | static const __be16 *b = (const __be16 *)br_group_address; |
112 | static const __be16 m = __constant_cpu_to_be16(0xfff0); | 112 | static const __be16 m = cpu_to_be16(0xfff0); |
113 | 113 | ||
114 | return ((a[0] ^ b[0]) | (a[1] ^ b[1]) | ((a[2] ^ b[2]) & m)) == 0; | 114 | return ((a[0] ^ b[0]) | (a[1] ^ b[1]) | ((a[2] ^ b[2]) & m)) == 0; |
115 | } | 115 | } |