diff --git a/audio/telephony-ofono.c b/audio/telephony-ofono.c
index ef4ede7..6f5685b 100644
--- a/audio/telephony-ofono.c
+++ b/audio/telephony-ofono.c
void telephony_key_press_req(void *telephony_device, const char *keys)
{
- struct voice_call *active, *waiting;
+ struct voice_call *active, *incoming;
int err;
DBG("telephony-ofono: got key press request for %s", keys);
- waiting = find_vc_with_status(CALL_STATUS_INCOMING);
- if (!waiting)
- waiting = find_vc_with_status(CALL_STATUS_DIALING);
+ incoming = find_vc_with_status(CALL_STATUS_INCOMING);
active = find_vc_with_status(CALL_STATUS_ACTIVE);
- if (waiting)
- err = answer_call(waiting);
+ if (incoming)
+ err = answer_call(incoming);
else if (active)
err = release_call(active);
else