diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-06-18 14:24:18 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-06-18 14:24:18 -0500 |
commit | 681aaef1abf582467172af01256e71691587e16d (patch) | |
tree | 9fdcb58882094c1c9541f32769b33cc9adf31bf2 /drivers/atmodem/sim.c | |
parent | 4f72a3a1f7cc42d474a8db2eaa23d5c1ea0bbad1 (diff) | |
download | ofono-681aaef1abf582467172af01256e71691587e16d.tar.bz2 |
atmodem: Use a switch/case in sim.c
Diffstat (limited to 'drivers/atmodem/sim.c')
-rw-r--r-- | drivers/atmodem/sim.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/atmodem/sim.c b/drivers/atmodem/sim.c index 8d5a9fa0..7499d600 100644 --- a/drivers/atmodem/sim.c +++ b/drivers/atmodem/sim.c @@ -780,10 +780,16 @@ static int at_sim_probe(struct ofono_sim *sim, unsigned int vendor, sd->chat = chat; sd->vendor = vendor; - if (sd->vendor == OFONO_VENDOR_WAVECOM) + switch (sd->vendor) { + case OFONO_VENDOR_WAVECOM: g_at_chat_add_terminator(chat, "+CPIN:", 6, TRUE); - if (sd->vendor == OFONO_VENDOR_MBM) + break; + case OFONO_VENDOR_MBM: g_at_chat_send(chat, "AT*EPEE=1", NULL, NULL, NULL, NULL); + break; + default: + break; + } ofono_sim_set_data(sim, sd); g_idle_add(at_sim_register, sim); |