diff options
Diffstat (limited to 'net/atm')
-rw-r--r-- | net/atm/br2684.c | 2 | ||||
-rw-r--r-- | net/atm/clip.c | 3 | ||||
-rw-r--r-- | net/atm/lec.c | 3 |
3 files changed, 4 insertions, 4 deletions
diff --git a/net/atm/br2684.c b/net/atm/br2684.c index ad2b232a2055..fce2eae8d476 100644 --- a/net/atm/br2684.c +++ b/net/atm/br2684.c | |||
@@ -97,7 +97,7 @@ static LIST_HEAD(br2684_devs); | |||
97 | 97 | ||
98 | static inline struct br2684_dev *BRPRIV(const struct net_device *net_dev) | 98 | static inline struct br2684_dev *BRPRIV(const struct net_device *net_dev) |
99 | { | 99 | { |
100 | return (struct br2684_dev *)netdev_priv(net_dev); | 100 | return netdev_priv(net_dev); |
101 | } | 101 | } |
102 | 102 | ||
103 | static inline struct net_device *list_entry_brdev(const struct list_head *le) | 103 | static inline struct net_device *list_entry_brdev(const struct list_head *le) |
diff --git a/net/atm/clip.c b/net/atm/clip.c index ff956d1115bc..d257da50fcfb 100644 --- a/net/atm/clip.c +++ b/net/atm/clip.c | |||
@@ -502,7 +502,8 @@ static int clip_setentry(struct atm_vcc *vcc, __be32 ip) | |||
502 | struct atmarp_entry *entry; | 502 | struct atmarp_entry *entry; |
503 | int error; | 503 | int error; |
504 | struct clip_vcc *clip_vcc; | 504 | struct clip_vcc *clip_vcc; |
505 | struct flowi fl = { .nl_u = { .ip4_u = { .daddr = ip, .tos = 1}} }; | 505 | struct flowi fl = { .fl4_dst = ip, |
506 | .fl4_tos = 1 }; | ||
506 | struct rtable *rt; | 507 | struct rtable *rt; |
507 | 508 | ||
508 | if (vcc->push != clip_push) { | 509 | if (vcc->push != clip_push) { |
diff --git a/net/atm/lec.c b/net/atm/lec.c index 181d70c73d70..179e04bc99dd 100644 --- a/net/atm/lec.c +++ b/net/atm/lec.c | |||
@@ -816,8 +816,7 @@ static int lec_mcast_attach(struct atm_vcc *vcc, int arg) | |||
816 | if (arg < 0 || arg >= MAX_LEC_ITF || !dev_lec[arg]) | 816 | if (arg < 0 || arg >= MAX_LEC_ITF || !dev_lec[arg]) |
817 | return -EINVAL; | 817 | return -EINVAL; |
818 | vcc->proto_data = dev_lec[arg]; | 818 | vcc->proto_data = dev_lec[arg]; |
819 | return lec_mcast_make((struct lec_priv *)netdev_priv(dev_lec[arg]), | 819 | return lec_mcast_make(netdev_priv(dev_lec[arg]), vcc); |
820 | vcc); | ||
821 | } | 820 | } |
822 | 821 | ||
823 | /* Initialize device. */ | 822 | /* Initialize device. */ |