[QETH]: fix qeth_main.c
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 11 Oct 2007 09:44:23 +0000 (02:44 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Oct 2007 09:44:23 +0000 (02:44 -0700)
drivers/s390/net/qeth_main.c: In function 'qeth_hard_header_parse':
drivers/s390/net/qeth_main.c:6584: error: 'dev' undeclared (first use in this function)
drivers/s390/net/qeth_main.c:6584: error: (Each undeclared identifier is reported only once
drivers/s390/net/qeth_main.c:6584: error: for each function it appears in.)

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/qeth_main.c

index c67e7dfd56cc075fa9d8c6ae3e9d1e3f18a1b3a1..a2d08c9ba3c4a9fe49885445c599353d8d2d8085 100644 (file)
@@ -6580,11 +6580,12 @@ qeth_hard_header_parse(const struct sk_buff *skb, unsigned char *haddr)
 {
        const struct qeth_card *card;
        const struct ethhdr *eth;
+       struct net_device *dev = skb->dev;
 
        if (dev->type != ARPHRD_IEEE802_TR)
                return 0;
 
-       card = qeth_get_card_from_dev(skb->dev);
+       card = qeth_get_card_from_dev(dev);
        if (card->options.layer2)
                goto haveheader;
 #ifdef CONFIG_QETH_IPV6