mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
decnet: Fix compiler warning in dn_dev.c
Use offsetof() instead of home-brewed version. Based upon initial patch by Steven Whitehouse and suggestions by Ben Hutchings. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
22441cfa0c
commit
8fa0b315fc
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ static struct dn_dev_parms dn_dev_list[] = {
|
|||
|
||||
#define DN_DEV_LIST_SIZE ARRAY_SIZE(dn_dev_list)
|
||||
|
||||
#define DN_DEV_PARMS_OFFSET(x) ((int) ((char *) &((struct dn_dev_parms *)0)->x))
|
||||
#define DN_DEV_PARMS_OFFSET(x) offsetof(struct dn_dev_parms, x)
|
||||
|
||||
#ifdef CONFIG_SYSCTL
|
||||
|
||||
|
|
Loading…
Reference in a new issue