From: Stephen Hemminger Date: Fri, 11 Aug 2006 06:03:23 +0000 (-0700) Subject: [NEIGHBOUR]: Use ALIGN() macro. X-Git-Tag: v2.6.19-rc1~1272^2~287 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=d924424aaed116b362c6d0e667d912b77e655085;p=linux-2.6-omap-h63xx.git [NEIGHBOUR]: Use ALIGN() macro. Rather than opencoding the mask, it looks better to use ALIGN() macro from kernel.h. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller --- diff --git a/include/net/neighbour.h b/include/net/neighbour.h index 74c4b6ff8a5..bd187daffdb 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);