From c18e01be16b0036112f29af9f2f7e1a1a779e5f2 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 10 Nov 2010 09:15:51 -0600 Subject: [PATCH] cbs: Minor style fixes --- src/cbs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cbs.c b/src/cbs.c index 821985b4..16177952 100644 --- a/src/cbs.c +++ b/src/cbs.c @@ -182,7 +182,6 @@ void ofono_cbs_notify(struct ofono_cbs *cbs, const unsigned char *pdu, enum sms_charset charset; char *message; char iso639_lang[3]; - struct ofono_atom *sim_atom; if (cbs->assembly == NULL) return; @@ -193,8 +192,9 @@ void ofono_cbs_notify(struct ofono_cbs *cbs, const unsigned char *pdu, } if (cbs_topic_in_range(c.message_identifier, cbs->efcbmid_contents)) { - sim_atom = __ofono_modem_find_atom(modem, OFONO_ATOM_TYPE_SIM); + struct ofono_atom *sim_atom; + sim_atom = __ofono_modem_find_atom(modem, OFONO_ATOM_TYPE_SIM); if (!sim_atom) return; @@ -206,6 +206,7 @@ void ofono_cbs_notify(struct ofono_cbs *cbs, const unsigned char *pdu, if (cbs->stk) __ofono_cbs_sim_download(cbs->stk, &c); + return; }