summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-06-18 14:24:18 -0500
committerDenis Kenzior <denkenz@gmail.com>2010-06-18 14:24:18 -0500
commit681aaef1abf582467172af01256e71691587e16d (patch)
tree9fdcb58882094c1c9541f32769b33cc9adf31bf2 /drivers
parent4f72a3a1f7cc42d474a8db2eaa23d5c1ea0bbad1 (diff)
atmodem: Use a switch/case in sim.c
Diffstat (limited to 'drivers')
-rw-r--r--drivers/atmodem/sim.c10
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);