mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[NEIGHBOUR]: Use ALIGN() macro.
Rather than opencoding the mask, it looks better to use ALIGN() macro from kernel.h. Signed-off-by: Stephen Hemminger <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
1e38bb3a38
commit
d924424aae
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue