summaryrefslogtreecommitdiff
path: root/tor2.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-12-07 19:39:05 +0000
committerkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2007-12-07 19:39:05 +0000
commit859ac8f1259c493d2e935c4dcdaf2b62bba7e6bc (patch)
tree32c7b75cf190c5b5b4147d76171f9a413dab78d0 /tor2.c
parenta4d177fa6d89c5cd8cb9ef2339302a6d0a860d3f (diff)
as suggested by tzafrir on asterisk-dev, remove some code duplication when handling ZT_SPANCONFIG
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@3343 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'tor2.c')
-rw-r--r--tor2.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/tor2.c b/tor2.c
index 4e10b12..ef2cf05 100644
--- a/tor2.c
+++ b/tor2.c
@@ -202,11 +202,7 @@ static int tor2_spanconfig(struct zt_span *span, struct zt_lineconfig *lc)
if (debug)
printk("Tor2: Configuring span %d\n", span->spanno);
- /* XXX We assume lineconfig is okay and shouldn't XXX */
- span->lineconfig = lc->lineconfig;
- span->lbo = lc->lbo;
- span->txlevel = lc->lbo;
- span->rxlevel = 0;
+
span->syncsrc = p->tor->syncsrc;
/* remove this span number from the current sync sources, if there */
@@ -225,6 +221,7 @@ static int tor2_spanconfig(struct zt_span *span, struct zt_lineconfig *lc)
/* If we're already running, then go ahead and apply the changes */
if (span->flags & ZT_FLAG_RUNNING)
return tor2_startup(span);
+
return 0;
}