[NEIGHBOUR]: Use ALIGN() macro.
authorStephen Hemminger <shemminger@osdl.org>
Fri, 11 Aug 2006 06:03:23 +0000 (23:03 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 22 Sep 2006 21:54:23 +0000 (14:54 -0700)
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>
include/net/neighbour.h

index 74c4b6ff8a5c52b8c3cd8af39d40c07ef2b97de4..bd187daffdb9f51decc99b6ac90b7de778db267c 100644 (file)
@@ -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);