diff options
Diffstat (limited to 'net/appletalk/ddp.c')
-rw-r--r-- | net/appletalk/ddp.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/net/appletalk/ddp.c b/net/appletalk/ddp.c index d3134e7e6ee8..5abce07fb50a 100644 --- a/net/appletalk/ddp.c +++ b/net/appletalk/ddp.c | |||
@@ -815,9 +815,6 @@ static int atif_ioctl(int cmd, void __user *arg) | |||
815 | return -EPERM; | 815 | return -EPERM; |
816 | if (sa->sat_family != AF_APPLETALK) | 816 | if (sa->sat_family != AF_APPLETALK) |
817 | return -EINVAL; | 817 | return -EINVAL; |
818 | if (!atif) | ||
819 | return -EADDRNOTAVAIL; | ||
820 | |||
821 | /* | 818 | /* |
822 | * for now, we only support proxy AARP on ELAP; | 819 | * for now, we only support proxy AARP on ELAP; |
823 | * we should be able to do it for LocalTalk, too. | 820 | * we should be able to do it for LocalTalk, too. |
@@ -1284,7 +1281,7 @@ static int handle_ip_over_ddp(struct sk_buff *skb) | |||
1284 | skb->dev = dev; | 1281 | skb->dev = dev; |
1285 | skb_reset_transport_header(skb); | 1282 | skb_reset_transport_header(skb); |
1286 | 1283 | ||
1287 | stats = dev->priv; | 1284 | stats = netdev_priv(dev); |
1288 | stats->rx_packets++; | 1285 | stats->rx_packets++; |
1289 | stats->rx_bytes += skb->len + 13; | 1286 | stats->rx_bytes += skb->len + 13; |
1290 | netif_rx(skb); /* Send the SKB up to a higher place. */ | 1287 | netif_rx(skb); /* Send the SKB up to a higher place. */ |