diff options
author | Stephen Hemminger <shemminger@osdl.org> | 2006-08-11 02:03:23 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-22 17:54:23 -0400 |
commit | d924424aaed116b362c6d0e667d912b77e655085 (patch) | |
tree | 3e0471efbc0e5bdba5daee4238eb3996aaafb5d7 /include | |
parent | 1e38bb3a38d08129d08c904b10ea3ba08e22d297 (diff) |
[NEIGHBOUR]: Use ALIGN() macro.
Rather than opencoding the mask, it looks better to use ALIGN()
macro from kernel.h.
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/neighbour.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/neighbour.h b/include/net/neighbour.h index 74c4b6ff8a5c..bd187daffdb9 100644 --- a/include/net/neighbour.h +++ b/include/net/neighbour.h | |||
@@ -101,7 +101,7 @@ struct neighbour | |||
101 | __u8 dead; | 101 | __u8 dead; |
102 | atomic_t probes; | 102 | atomic_t probes; |
103 | rwlock_t lock; | 103 | rwlock_t lock; |
104 | unsigned char ha[(MAX_ADDR_LEN+sizeof(unsigned long)-1)&~(sizeof(unsigned long)-1)]; | 104 | unsigned char ha[ALIGN(MAX_ADDR_LEN, sizeof(unsigned long))]; |
105 | struct hh_cache *hh; | 105 | struct hh_cache *hh; |
106 | atomic_t refcnt; | 106 | atomic_t refcnt; |
107 | int (*output)(struct sk_buff *skb); | 107 | int (*output)(struct sk_buff *skb); |