From: =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Dalleau <frederic.dalleau@linux.intel.com>
To: ofono@ofono.org
Subject: [PATCH] voicecall: remove unnecessary local var
Date: Tue, 24 May 2011 09:56:57 +0200 [thread overview]
Message-ID: <1306223817-6474-1-git-send-email-frederic.dalleau@linux.intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 666 bytes --]
---
src/voicecall.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/src/voicecall.c b/src/voicecall.c
index 0273ed6..94a20a9 100644
--- a/src/voicecall.c
+++ b/src/voicecall.c
@@ -2606,12 +2606,8 @@ static void sim_watch(struct ofono_atom *atom,
static void emulator_generic_cb(const struct ofono_error *error, void *data)
{
struct ofono_emulator *em = data;
- struct ofono_error result;
-
- result.error = error->error;
- result.type = error->type;
- ofono_emulator_send_final(em, &result);
+ ofono_emulator_send_final(em, error);
}
static void emulator_ata_cb(struct ofono_emulator *em,
--
1.7.1
next reply other threads:[~2011-05-24 7:56 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-24 7:56 =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Dalleau [this message]
2011-05-24 16:48 ` [PATCH] voicecall: remove unnecessary local var Denis Kenzior
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=1306223817-6474-1-git-send-email-frederic.dalleau@linux.intel.com \
--to=frederic.dalleau@linux.intel.com \
--cc=ofono@ofono.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