drivers: modem: gsm: Remove unused flags

The `setup_done` and `mux_setup_done` aren't being used
anywhere in the driver, therefore should be removed.

Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
This commit is contained in:
Yong Cong Sin 2021-09-05 18:39:03 +08:00 committed by Carles Cufí
parent 7dc1e790a8
commit 00513c90c5

View file

@ -89,8 +89,6 @@ static struct gsm_modem {
int rssi_retries;
int attach_retries;
bool mux_enabled : 1;
bool mux_setup_done : 1;
bool setup_done : 1;
bool attached : 1;
bool modem_info_queried : 1;
@ -742,8 +740,6 @@ attaching:
return;
}
gsm->setup_done = true;
set_ppp_carrier_on(gsm);
if (IS_ENABLED(CONFIG_GSM_MUX) && gsm->mux_enabled) {
@ -999,7 +995,6 @@ static void gsm_configure(struct k_work *work)
if (IS_ENABLED(CONFIG_GSM_MUX) && ret == 0 &&
gsm->mux_enabled == false) {
gsm->mux_setup_done = false;
ret = mux_enable(gsm);
if (ret == 0) {