From 0a5ef0a9c8b60044d009f8e05f3d8bdc8f267faa Mon Sep 17 00:00:00 2001 From: Kai Vehmanen Date: Thu, 20 Jan 2011 16:13:01 +0200 Subject: [PATCH] isimodem: fix sending DTMF isi_call_dtmf_send_resp() handles the success case incorrectly, and thus all send_tones attempts fail with bogus error codes. --- drivers/isimodem/voicecall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/isimodem/voicecall.c b/drivers/isimodem/voicecall.c index 9aa9454d..55f4c17e 100644 --- a/drivers/isimodem/voicecall.c +++ b/drivers/isimodem/voicecall.c @@ -865,7 +865,7 @@ static void isi_call_dtmf_send_resp(const GIsiMessage *msg, void *data) struct isi_call_req_ctx *irc = data; GIsiSubBlockIter iter; uint8_t cause_type; - uint8_t cause; + uint8_t cause = CALL_CAUSE_NO_CAUSE; if (!check_response_status(msg, CALL_DTMF_SEND_RESP)) goto error;