mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
[QETH]: fix qeth_main.c
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>
This commit is contained in:
parent
28f7b0360f
commit
d71fce6b93
1 changed files with 2 additions and 1 deletions
|
@ -6580,11 +6580,12 @@ qeth_hard_header_parse(const struct sk_buff *skb, unsigned char *haddr)
|
||||||
{
|
{
|
||||||
const struct qeth_card *card;
|
const struct qeth_card *card;
|
||||||
const struct ethhdr *eth;
|
const struct ethhdr *eth;
|
||||||
|
struct net_device *dev = skb->dev;
|
||||||
|
|
||||||
if (dev->type != ARPHRD_IEEE802_TR)
|
if (dev->type != ARPHRD_IEEE802_TR)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
card = qeth_get_card_from_dev(skb->dev);
|
card = qeth_get_card_from_dev(dev);
|
||||||
if (card->options.layer2)
|
if (card->options.layer2)
|
||||||
goto haveheader;
|
goto haveheader;
|
||||||
#ifdef CONFIG_QETH_IPV6
|
#ifdef CONFIG_QETH_IPV6
|
||||||
|
|
Loading…
Reference in a new issue