summaryrefslogtreecommitdiffstats
path: root/src/cbs.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-11-10 09:15:51 -0600
committerDenis Kenzior <denkenz@gmail.com>2010-11-10 09:15:51 -0600
commitc18e01be16b0036112f29af9f2f7e1a1a779e5f2 (patch)
treef4fba7611cfd5e97eb515bc5b6e29393587deeb5 /src/cbs.c
parent32e4eae81428d0fbca77893065629e5e8c1d7249 (diff)
downloadofono-c18e01be16b0036112f29af9f2f7e1a1a779e5f2.tar.bz2
cbs: Minor style fixes
Diffstat (limited to 'src/cbs.c')
-rw-r--r--src/cbs.c5
1 files 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;
}