summaryrefslogtreecommitdiffstats
path: root/src/voicecall.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2012-07-15 20:32:17 -0300
committerMarcel Holtmann <marcel@holtmann.org>2012-07-15 20:32:17 -0300
commit8cdc453b2b459854b98488b1f9af6fd45192166d (patch)
tree90ba502cb0d5a21aaebfd86f68e25b5b82245a0d /src/voicecall.c
parentb2f628687a490686ad2e399c9bed5e784ae7c027 (diff)
downloadofono-8cdc453b2b459854b98488b1f9af6fd45192166d.tar.bz2
voicecall: Remove shadowing modem variable
Diffstat (limited to 'src/voicecall.c')
-rw-r--r--src/voicecall.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/voicecall.c b/src/voicecall.c
index dd4a2f95..37831fea 100644
--- a/src/voicecall.c
+++ b/src/voicecall.c
@@ -2283,12 +2283,8 @@ void ofono_voicecall_notify(struct ofono_voicecall *vc,
struct dial_request *req = vc->dial_req;
const char *number = phone_number_to_string(&req->ph);
- if (!strcmp(number, "112")) {
- struct ofono_modem *modem =
- __ofono_atom_get_modem(vc->atom);
-
+ if (!strcmp(number, "112"))
__ofono_modem_inc_emergency_mode(modem);
- }
if (v->call->clip_validity == CLIP_VALIDITY_NOT_AVAILABLE) {
char *number = v->call->phone_number.number;