diff --git a/src/sim.c b/src/sim.c index 69e0a89e..bf285eef 100644 --- a/src/sim.c +++ b/src/sim.c @@ -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;