From 871dd70833a61132752f9847db5407a66a9b5b74 Mon Sep 17 00:00:00 2001 From: Frédéric Dalleau Date: Tue, 24 May 2011 09:56:57 +0200 Subject: voicecall: remove unnecessary local var --- src/voicecall.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src') diff --git a/src/voicecall.c b/src/voicecall.c index 0273ed69..94a20a93 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, -- cgit v1.2.3