Skip to contentSkip to conversation

voicecall: remove unnecessary local var

PATCH In review Frédéric Dalleau 2 participants 2 messages May 24, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 voicecall: remove unnecessary local var

---
 src/voicecall.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
src/voicecall.c +1 -5
index 0273ed6..94a20a9 100644
@@ -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,
Signature · 1 line
1.7.1
#1 lore raw

Hi Frédéric,

Quoted 4 lines · Frédéric Dalleau
---
 src/voicecall.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

Patch has been applied, thanks.

Regards,
-Denis