From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH] telephony-ofono: fix handling of telephony_key_press_req
Date: Wed, 23 Mar 2011 17:42:07 +0200 [thread overview]
Message-ID: <1300894927-31702-1-git-send-email-luiz.dentz@gmail.com> (raw)
From: Luiz Augusto von Dentz <luiz.dentz-von@nokia.com>
---
audio/telephony-ofono.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
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
@@ -579,19 +579,17 @@ void telephony_nr_and_ec_req(void *telephony_device, gboolean enable)
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
--
1.7.1
next reply other threads:[~2011-03-23 15:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-23 15:42 Luiz Augusto von Dentz [this message]
2011-03-24 9:16 ` [PATCH] telephony-ofono: fix handling of telephony_key_press_req Johan Hedberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1300894927-31702-1-git-send-email-luiz.dentz@gmail.com \
--to=luiz.dentz@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox