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:
parent
7dc1e790a8
commit
00513c90c5
1 changed files with 0 additions and 5 deletions
|
@ -89,8 +89,6 @@ static struct gsm_modem {
|
||||||
int rssi_retries;
|
int rssi_retries;
|
||||||
int attach_retries;
|
int attach_retries;
|
||||||
bool mux_enabled : 1;
|
bool mux_enabled : 1;
|
||||||
bool mux_setup_done : 1;
|
|
||||||
bool setup_done : 1;
|
|
||||||
bool attached : 1;
|
bool attached : 1;
|
||||||
bool modem_info_queried : 1;
|
bool modem_info_queried : 1;
|
||||||
|
|
||||||
|
@ -742,8 +740,6 @@ attaching:
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
gsm->setup_done = true;
|
|
||||||
|
|
||||||
set_ppp_carrier_on(gsm);
|
set_ppp_carrier_on(gsm);
|
||||||
|
|
||||||
if (IS_ENABLED(CONFIG_GSM_MUX) && gsm->mux_enabled) {
|
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 &&
|
if (IS_ENABLED(CONFIG_GSM_MUX) && ret == 0 &&
|
||||||
gsm->mux_enabled == false) {
|
gsm->mux_enabled == false) {
|
||||||
gsm->mux_setup_done = false;
|
|
||||||
|
|
||||||
ret = mux_enable(gsm);
|
ret = mux_enable(gsm);
|
||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue