s390/qeth: free netdevice when removing a card
[pandora-kernel.git] / drivers / s390 / net / qeth_core_main.c
index 3a0b5fc..0c2f7a5 100644 (file)
@@ -4578,8 +4578,6 @@ static void qeth_core_free_card(struct qeth_card *card)
        QETH_DBF_HEX(SETUP, 2, &card, sizeof(void *));
        qeth_clean_channel(&card->read);
        qeth_clean_channel(&card->write);
-       if (card->dev)
-               free_netdev(card->dev);
        kfree(card->ip_tbd_list);
        qeth_free_qdio_buffers(card);
        unregister_service_level(&card->qeth_service_level);