diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/sim.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1878,9 +1878,9 @@ void ofono_sim_inserted_notify(struct ofono_sim *sim, ofono_bool_t inserted) ofono_sim_state_event_notify_cb_t notify; GSList *l; - if (inserted && sim->state == OFONO_SIM_STATE_NOT_PRESENT) + if (inserted == TRUE && sim->state == OFONO_SIM_STATE_NOT_PRESENT) sim->state = OFONO_SIM_STATE_INSERTED; - else if (!inserted && sim->state != OFONO_SIM_STATE_NOT_PRESENT) + else if (inserted == FALSE && sim->state != OFONO_SIM_STATE_NOT_PRESENT) sim->state = OFONO_SIM_STATE_NOT_PRESENT; else return; |