From 210e5017823f30275ce1e96d4cb12bf543810ea8 Mon Sep 17 00:00:00 2001 From: Stefan Knoblich Date: Thu, 13 Sep 2012 01:02:31 +0200 Subject: [PATCH] mod_freetdm: Remove duplicate assignment. curr is getting set in the for() statement (again). Use that, remove the other line setting it. Signed-off-by: Stefan Knoblich --- libs/freetdm/mod_freetdm/mod_freetdm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/libs/freetdm/mod_freetdm/mod_freetdm.c b/libs/freetdm/mod_freetdm/mod_freetdm.c index 3d2b1ddd3d..182c0b206b 100755 --- a/libs/freetdm/mod_freetdm/mod_freetdm.c +++ b/libs/freetdm/mod_freetdm/mod_freetdm.c @@ -3729,7 +3729,6 @@ static switch_status_t load_config(void) SPAN_CONFIG[span_id].analog_options = analog_options | globals.analog_options; chaniter = ftdm_span_get_chan_iterator(span, NULL); - curr = chaniter; for (curr = chaniter; curr; curr = ftdm_iterator_next(curr)) { fchan = ftdm_iterator_current(curr); ftdm_channel_set_private(fchan, &SPAN_CONFIG[span_id].pvts[i]);