From 681aaef1abf582467172af01256e71691587e16d Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Fri, 18 Jun 2010 14:24:18 -0500 Subject: atmodem: Use a switch/case in sim.c --- drivers/atmodem/sim.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'drivers/atmodem/sim.c') 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); -- cgit v1.2.3