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_core_main.c | |
parent | s390/qeth: make cmd/reply matching more flexible (diff) | |
download | linux-dev-17d9723e69d44491d04289213006fea1647bd0a6.tar.xz linux-dev-17d9723e69d44491d04289213006fea1647bd0a6.zip |
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 '')
-rw-r--r-- | drivers/s390/net/qeth_core_main.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_main.c index 0f5f36e63823..9639938581f5 100644 --- a/drivers/s390/net/qeth_core_main.c +++ b/drivers/s390/net/qeth_core_main.c @@ -247,9 +247,6 @@ int qeth_realloc_buffer_pool(struct qeth_card *card, int bufcnt) { QETH_CARD_TEXT(card, 2, "realcbp"); - if (card->state != CARD_STATE_DOWN) - return -EPERM; - /* TODO: steel/add buffers from/to a running card's buffer pool (?) */ qeth_clear_working_pool_list(card); qeth_free_buffer_pool(card); |