summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhenhua Zhang <zhenhua.zhang@intel.com>2009-11-03 11:19:39 -0600
committerDenis Kenzior <denkenz@gmail.com>2009-11-03 11:19:39 -0600
commitc40657216d89e899b2cabb9c9a7b94e067962023 (patch)
tree87210267d4c1267c3272df0554a606c0a5f44f48
parentac5f67c46d1374506b3282b4089b2b3e31d59bc2 (diff)
downloadofono-c40657216d89e899b2cabb9c9a7b94e067962023.tar.bz2
Fix: Remove some dead code
-rw-r--r--drivers/hfpmodem/voicecall.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/hfpmodem/voicecall.c b/drivers/hfpmodem/voicecall.c
index ebee6674..d1f45781 100644
--- a/drivers/hfpmodem/voicecall.c
+++ b/drivers/hfpmodem/voicecall.c
@@ -129,8 +129,7 @@ static void generic_cb(gboolean ok, GAtResult *result, gpointer user_data)
call = l->data;
if (req->affected_types & (0x1 << call->status))
- vd->local_release |=
- (0x1 << call->id);
+ vd->local_release |= (0x1 << call->id);
}
}
@@ -143,7 +142,6 @@ static void atd_cb(gboolean ok, GAtResult *result, gpointer user_data)
struct ofono_voicecall *vc = cbd->user;
struct voicecall_data *vd = ofono_voicecall_get_data(vc);
ofono_voicecall_cb_t cb = cbd->cb;
- GAtResultIter iter;
int type = 128;
int validity = 2;
struct ofono_error error;
@@ -156,8 +154,6 @@ static void atd_cb(gboolean ok, GAtResult *result, gpointer user_data)
if (!ok)
goto out;
- g_at_result_iter_init(&iter, result);
-
call = create_call(vd, 0, 0, CALL_STATUS_DIALING, NULL, type, validity);
if (!call) {