mirror of https://gitee.com/openkylin/linux.git
mwifiex: remove redundant flag MWIFIEX_HW_STATUS_FW_READY
This flag is never set but checked at two places. We will get rid of this code. Signed-off-by: Cathy Luo <cluo@marvell.com> Signed-off-by: Amitkumar Karwar <akarwar@marvell.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
4f3dfdfb4c
commit
7197325b17
|
@ -511,8 +511,7 @@ static void mwifiex_fw_dpc(const struct firmware *firmware, void *context)
|
|||
if (adapter->if_ops.unregister_dev)
|
||||
adapter->if_ops.unregister_dev(adapter);
|
||||
|
||||
if ((adapter->hw_status == MWIFIEX_HW_STATUS_FW_READY) ||
|
||||
(adapter->hw_status == MWIFIEX_HW_STATUS_READY)) {
|
||||
if (adapter->hw_status == MWIFIEX_HW_STATUS_READY) {
|
||||
pr_debug("info: %s: shutdown mwifiex\n", __func__);
|
||||
adapter->init_wait_q_woken = false;
|
||||
|
||||
|
@ -1116,8 +1115,7 @@ mwifiex_add_card(void *card, struct semaphore *sem,
|
|||
pr_debug("info: %s: unregister device\n", __func__);
|
||||
if (adapter->if_ops.unregister_dev)
|
||||
adapter->if_ops.unregister_dev(adapter);
|
||||
if ((adapter->hw_status == MWIFIEX_HW_STATUS_FW_READY) ||
|
||||
(adapter->hw_status == MWIFIEX_HW_STATUS_READY)) {
|
||||
if (adapter->hw_status == MWIFIEX_HW_STATUS_READY) {
|
||||
pr_debug("info: %s: shutdown mwifiex\n", __func__);
|
||||
adapter->init_wait_q_woken = false;
|
||||
|
||||
|
|
|
@ -165,7 +165,6 @@ struct mwifiex_dbg {
|
|||
enum MWIFIEX_HARDWARE_STATUS {
|
||||
MWIFIEX_HW_STATUS_READY,
|
||||
MWIFIEX_HW_STATUS_INITIALIZING,
|
||||
MWIFIEX_HW_STATUS_FW_READY,
|
||||
MWIFIEX_HW_STATUS_INIT_DONE,
|
||||
MWIFIEX_HW_STATUS_RESET,
|
||||
MWIFIEX_HW_STATUS_CLOSING,
|
||||
|
|
Loading…
Reference in New Issue