s390/qeth: fix locking for discipline setup / removal
[linux-2.6-microblaze.git] / drivers / s390 / net / qeth_l3_main.c
index 8d47417..6970597 100644 (file)
@@ -1970,11 +1970,8 @@ static void qeth_l3_remove_device(struct ccwgroup_device *cgdev)
        qeth_set_allowed_threads(card, 0, 1);
        wait_event(card->wait_q, qeth_threads_running(card, 0xffffffff) == 0);
 
-       if (cgdev->state == CCWGROUP_ONLINE) {
-               mutex_lock(&card->discipline_mutex);
+       if (cgdev->state == CCWGROUP_ONLINE)
                qeth_set_offline(card, card->discipline, false);
-               mutex_unlock(&card->discipline_mutex);
-       }
 
        cancel_work_sync(&card->close_dev_work);
        if (card->dev->reg_state == NETREG_REGISTERED)