aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@osdl.org>2006-08-10 23:03:23 -0700
committerDavid S. Miller <davem@sunset.davemloft.net>2006-09-22 14:54:23 -0700
commitd924424aaed116b362c6d0e667d912b77e655085 (patch)
tree3e0471efbc0e5bdba5daee4238eb3996aaafb5d7
parent[NET]: Kill double initialization in sock_alloc_inode. (diff)
downloadlinux-dev-d924424aaed116b362c6d0e667d912b77e655085.tar.xz
linux-dev-d924424aaed116b362c6d0e667d912b77e655085.zip
[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>
-rw-r--r--include/net/neighbour.h2
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
__u8 dead;
atomic_t probes;
rwlock_t lock;
- unsigned char ha[(MAX_ADDR_LEN+sizeof(unsigned long)-1)&~(sizeof(unsigned long)-1)];
+ unsigned char ha[ALIGN(MAX_ADDR_LEN, sizeof(unsigned long))];
struct hh_cache *hh;
atomic_t refcnt;
int (*output)(struct sk_buff *skb);