X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=net%2Fappletalk%2Fddp.c;h=5abce07fb50a195b1f280af8dbe588e2fefc2d6c;hb=d19b85db9d5c44a4c21dcb10d6fbadaa4425ab2a;hp=d3134e7e6ee8e3a6960806259ce4266fabdb6a82;hpb=b31a0fecd1dd01f1db406014a7c8a73983e04cc9;p=linux-2.6-omap-h63xx.git diff --git a/net/appletalk/ddp.c b/net/appletalk/ddp.c index d3134e7e6ee..5abce07fb50 100644 --- a/net/appletalk/ddp.c +++ b/net/appletalk/ddp.c @@ -815,9 +815,6 @@ static int atif_ioctl(int cmd, void __user *arg) return -EPERM; if (sa->sat_family != AF_APPLETALK) return -EINVAL; - if (!atif) - return -EADDRNOTAVAIL; - /* * for now, we only support proxy AARP on ELAP; * we should be able to do it for LocalTalk, too. @@ -1284,7 +1281,7 @@ static int handle_ip_over_ddp(struct sk_buff *skb) skb->dev = dev; skb_reset_transport_header(skb); - stats = dev->priv; + stats = netdev_priv(dev); stats->rx_packets++; stats->rx_bytes += skb->len + 13; netif_rx(skb); /* Send the SKB up to a higher place. */