diff options
author | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-12-07 19:39:05 +0000 |
---|---|---|
committer | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-12-07 19:39:05 +0000 |
commit | 859ac8f1259c493d2e935c4dcdaf2b62bba7e6bc (patch) | |
tree | 32c7b75cf190c5b5b4147d76171f9a413dab78d0 /wcte11xp.c | |
parent | a4d177fa6d89c5cd8cb9ef2339302a6d0a860d3f (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 'wcte11xp.c')
-rw-r--r-- | wcte11xp.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -945,15 +945,13 @@ static int t1xxp_chanconfig(struct zt_chan *chan, int sigtype) static int t1xxp_spanconfig(struct zt_span *span, struct zt_lineconfig *lc) { struct t1 *wc = span->pvt; - span->lineconfig = lc->lineconfig; - span->lbo = lc->lbo; - span->txlevel = lc->lbo; - span->rxlevel = 0; + /* Do we want to SYNC on receive or not */ wc->sync = lc->sync; /* If already running, apply changes immediately */ if (span->flags & ZT_FLAG_RUNNING) return t1xxp_startup(span); + return 0; } |