Commit 7197325b authored by Amitkumar Karwar's avatar Amitkumar Karwar Committed by Kalle Valo

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: default avatarCathy Luo <cluo@marvell.com>
Signed-off-by: default avatarAmitkumar Karwar <akarwar@marvell.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 4f3dfdfb
...@@ -511,8 +511,7 @@ static void mwifiex_fw_dpc(const struct firmware *firmware, void *context) ...@@ -511,8 +511,7 @@ static void mwifiex_fw_dpc(const struct firmware *firmware, void *context)
if (adapter->if_ops.unregister_dev) if (adapter->if_ops.unregister_dev)
adapter->if_ops.unregister_dev(adapter); adapter->if_ops.unregister_dev(adapter);
if ((adapter->hw_status == MWIFIEX_HW_STATUS_FW_READY) || if (adapter->hw_status == MWIFIEX_HW_STATUS_READY) {
(adapter->hw_status == MWIFIEX_HW_STATUS_READY)) {
pr_debug("info: %s: shutdown mwifiex\n", __func__); pr_debug("info: %s: shutdown mwifiex\n", __func__);
adapter->init_wait_q_woken = false; adapter->init_wait_q_woken = false;
...@@ -1116,8 +1115,7 @@ mwifiex_add_card(void *card, struct semaphore *sem, ...@@ -1116,8 +1115,7 @@ mwifiex_add_card(void *card, struct semaphore *sem,
pr_debug("info: %s: unregister device\n", __func__); pr_debug("info: %s: unregister device\n", __func__);
if (adapter->if_ops.unregister_dev) if (adapter->if_ops.unregister_dev)
adapter->if_ops.unregister_dev(adapter); adapter->if_ops.unregister_dev(adapter);
if ((adapter->hw_status == MWIFIEX_HW_STATUS_FW_READY) || if (adapter->hw_status == MWIFIEX_HW_STATUS_READY) {
(adapter->hw_status == MWIFIEX_HW_STATUS_READY)) {
pr_debug("info: %s: shutdown mwifiex\n", __func__); pr_debug("info: %s: shutdown mwifiex\n", __func__);
adapter->init_wait_q_woken = false; adapter->init_wait_q_woken = false;
......
...@@ -165,7 +165,6 @@ struct mwifiex_dbg { ...@@ -165,7 +165,6 @@ struct mwifiex_dbg {
enum MWIFIEX_HARDWARE_STATUS { enum MWIFIEX_HARDWARE_STATUS {
MWIFIEX_HW_STATUS_READY, MWIFIEX_HW_STATUS_READY,
MWIFIEX_HW_STATUS_INITIALIZING, MWIFIEX_HW_STATUS_INITIALIZING,
MWIFIEX_HW_STATUS_FW_READY,
MWIFIEX_HW_STATUS_INIT_DONE, MWIFIEX_HW_STATUS_INIT_DONE,
MWIFIEX_HW_STATUS_RESET, MWIFIEX_HW_STATUS_RESET,
MWIFIEX_HW_STATUS_CLOSING, MWIFIEX_HW_STATUS_CLOSING,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment