diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2022-05-20 12:58:57 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2022-05-25 10:59:17 +0200 |
commit | f593421d8df2a611194426e3be08406e4c073295 (patch) | |
tree | f39be153f2831d110c0adf3f8744fa81f012e12c /src | |
parent | 1b30d10ad172dd9dfc95b5d97e1ee487b77d5a16 (diff) |
iface-modem: minor coding style fix
Diffstat (limited to 'src')
-rw-r--r-- | src/mm-iface-modem.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mm-iface-modem.c b/src/mm-iface-modem.c index d019fd4b..494a6306 100644 --- a/src/mm-iface-modem.c +++ b/src/mm-iface-modem.c @@ -5394,10 +5394,7 @@ interface_initialization_step (GTask *task) /* Don't run new steps if we're cancelled */ if (g_task_return_error_if_cancelled (task)) { /* Simply ignore any fatal error encountered as the initialization is cancelled anyway. */ - if (ctx->fatal_error) { - g_error_free (ctx->fatal_error); - ctx->fatal_error = NULL; - } + g_clear_error (&ctx->fatal_error); g_object_unref (task); return; } @@ -5823,7 +5820,7 @@ interface_initialization_step (GTask *task) ctx->step++; } /* fall-through */ - case INITIALIZATION_STEP_SIM_SLOTS: + case INITIALIZATION_STEP_SIM_SLOTS: /* If the modem doesn't need any SIM (not implemented by plugin, or not * needed in CDMA-only modems), or if we don't know how to query * for SIM slots */ |