drivers: modem: gsm: Reorder gsm mux logs so that it will be printed

The gsm_configure will return if it fails to perform mux_enable,
therefore the disable part of the log will not be printed.

Signed-off-by: Yong Cong Sin <yongcong.sin@gmail.com>
This commit is contained in:
Yong Cong Sin 2022-01-20 23:10:04 +08:00 committed by Carles Cufí
commit 499412a60d

View file

@ -998,17 +998,15 @@ static void gsm_configure(struct k_work *work)
ret = mux_enable(gsm);
if (ret == 0) {
LOG_DBG("GSM muxing %s", "enabled");
gsm->mux_enabled = true;
} else {
gsm->mux_enabled = false;
LOG_DBG("GSM muxing %s", "disabled");
(void)gsm_work_reschedule(&gsm->gsm_configure_work,
K_NO_WAIT);
return;
}
LOG_DBG("GSM muxing %s", gsm->mux_enabled ? "enabled" :
"disabled");
if (gsm->mux_enabled) {
gsm->state = STATE_INIT;