diff options
author | Denis Kenzior <denkenz@gmail.com> | 2012-01-18 12:52:01 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2012-01-18 12:52:01 -0600 |
commit | be914cd32a465b8693057957f46350cb0edc0c57 (patch) | |
tree | e63870588a70d47027ef2b8ce78681462016bde9 /src/cbs.c | |
parent | ae14a3056a156604216ed76daec1f551f86d772a (diff) | |
download | ofono-be914cd32a465b8693057957f46350cb0edc0c57.tar.bz2 |
cbs: finding SIM atom seems to not necessary now
Diffstat (limited to 'src/cbs.c')
-rw-r--r-- | src/cbs.c | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -174,7 +174,6 @@ static void cbs_dispatch_text(struct ofono_cbs *cbs, enum sms_class cls, void ofono_cbs_notify(struct ofono_cbs *cbs, const unsigned char *pdu, int pdu_len) { - struct ofono_modem *modem = __ofono_atom_get_modem(cbs->atom); struct cbs c; enum sms_class cls; gboolean udhi; @@ -193,14 +192,10 @@ void ofono_cbs_notify(struct ofono_cbs *cbs, const unsigned char *pdu, } if (cbs_topic_in_range(c.message_identifier, cbs->efcbmid_contents)) { - struct ofono_atom *sim_atom; - - sim_atom = __ofono_modem_find_atom(modem, OFONO_ATOM_TYPE_SIM); - if (sim_atom == NULL) + if (cbs->sim == NULL) return; - if (!__ofono_sim_service_available( - __ofono_atom_get_data(sim_atom), + if (!__ofono_sim_service_available(cbs->sim, SIM_UST_SERVICE_DATA_DOWNLOAD_SMS_CB, SIM_SST_SERVICE_DATA_DOWNLOAD_SMS_CB)) return; |