aboutsummaryrefslogtreecommitdiff
path: root/src/mm-iface-modem.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2016-08-10 09:49:40 +0200
committerAleksander Morgado <aleksander@aleksander.es>2016-08-10 09:49:40 +0200
commit048667ffc2e137672fb78037342283997f732250 (patch)
tree4eb2f4ff972a28008794d21c42db9285ac017176 /src/mm-iface-modem.c
parentf6708619393893507396f0a3314c3cc3e4b93791 (diff)
core: minor coding style changes
Diffstat (limited to 'src/mm-iface-modem.c')
-rw-r--r--src/mm-iface-modem.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mm-iface-modem.c b/src/mm-iface-modem.c
index c942e7b1..7c84b2c6 100644
--- a/src/mm-iface-modem.c
+++ b/src/mm-iface-modem.c
@@ -4747,14 +4747,11 @@ interface_initialization_step (InitializationContext *ctx)
gboolean is_sim_hot_swap_supported = FALSE;
g_object_get (ctx->self,
- MM_IFACE_MODEM_SIM_HOT_SWAP_SUPPORTED,
- &is_sim_hot_swap_supported,
+ MM_IFACE_MODEM_SIM_HOT_SWAP_SUPPORTED, &is_sim_hot_swap_supported,
NULL);
- if (is_sim_hot_swap_supported) {
- mm_iface_modem_update_failed_state (ctx->self,
- MM_MODEM_STATE_FAILED_REASON_SIM_MISSING);
- }
+ if (is_sim_hot_swap_supported)
+ mm_iface_modem_update_failed_state (ctx->self, MM_MODEM_STATE_FAILED_REASON_SIM_MISSING);
}
g_simple_async_result_take_error (ctx->result, ctx->fatal_error);
ctx->fatal_error = NULL;