diff options
author | Julian Wiedmann <jwi@linux.ibm.com> | 2020-07-14 16:22:56 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-14 14:53:44 -0700 |
commit | 101e314d7ff385a842c9fb0ddfe074024f4803f2 (patch) | |
tree | 503dcff76a51748510fd3eba0567125f2940ee8c /drivers/s390/net/qeth_l3_main.c | |
parent | 3d12e50fdd336b9b2e86285dab02a3bb743548c7 (diff) | |
download | linux-101e314d7ff385a842c9fb0ddfe074024f4803f2.tar.gz linux-101e314d7ff385a842c9fb0ddfe074024f4803f2.tar.bz2 linux-101e314d7ff385a842c9fb0ddfe074024f4803f2.zip |
s390/qeth: reject unsupported link type earlier
Rather than delaying the decision until netdev setup, immediately reject
a device when we discover that it has an unsupported link type
(ie. Token Ring).
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390/net/qeth_l3_main.c')
-rw-r--r-- | drivers/s390/net/qeth_l3_main.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/s390/net/qeth_l3_main.c b/drivers/s390/net/qeth_l3_main.c index 1e50aa0297a3..d4ce653ff111 100644 --- a/drivers/s390/net/qeth_l3_main.c +++ b/drivers/s390/net/qeth_l3_main.c @@ -1919,12 +1919,6 @@ static int qeth_l3_setup_netdev(struct qeth_card *card) return rc; if (IS_OSD(card) || IS_OSX(card)) { - if ((card->info.link_type == QETH_LINK_TYPE_LANE_TR) || - (card->info.link_type == QETH_LINK_TYPE_HSTR)) { - pr_info("qeth_l3: ignoring TR device\n"); - return -ENODEV; - } - card->dev->netdev_ops = &qeth_l3_osa_netdev_ops; /*IPv6 address autoconfiguration stuff*/ |