diff options
author | Julian Wiedmann <jwi@linux.ibm.com> | 2020-01-25 16:53:03 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-01-26 15:20:32 +0100 |
commit | 17d9723e69d44491d04289213006fea1647bd0a6 (patch) | |
tree | 1b875cf24286b56c6ffd6c6e5a57e5f6b8aa4109 /drivers/s390/net/qeth_l2_main.c | |
parent | 7f92316c5393b583c5217bb2cfc789d6820ec393 (diff) | |
download | linux-17d9723e69d44491d04289213006fea1647bd0a6.tar.bz2 |
s390/qeth: remove HARDSETUP state
qeth_l?_stop_card() is _never_ called while in HARDSETUP state, and
there's no other usage of the card state that relies on the
DOWN -> HARDSETUP -> SOFTSETUP transition.
As related cleanup, remove the check in qeth_realloc_buffer_pool() as it
is already done by the callers.
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_l2_main.c')
-rw-r--r-- | drivers/s390/net/qeth_l2_main.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/s390/net/qeth_l2_main.c b/drivers/s390/net/qeth_l2_main.c index d5ffd40937d3..692bd2623401 100644 --- a/drivers/s390/net/qeth_l2_main.c +++ b/drivers/s390/net/qeth_l2_main.c @@ -283,9 +283,6 @@ static void qeth_l2_stop_card(struct qeth_card *card) if (card->state == CARD_STATE_SOFTSETUP) { qeth_clear_ipacmd_list(card); - card->state = CARD_STATE_HARDSETUP; - } - if (card->state == CARD_STATE_HARDSETUP) { qeth_drain_output_queues(card); card->state = CARD_STATE_DOWN; } @@ -776,7 +773,6 @@ static int qeth_l2_set_online(struct qeth_card *card) qeth_trace_features(card); qeth_l2_trace_features(card); - card->state = CARD_STATE_HARDSETUP; qeth_print_status_message(card); /* softsetup */ |