diff options
author | Richard Mudgett <rmudgett@digium.com> | 2015-02-19 21:25:22 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2015-02-19 21:25:22 +0000 |
commit | e0ff83c27276f51b20faf081ed85e47f3c424384 (patch) | |
tree | acad513a95fa81b89a516d0379d6cbf58503e00e /channels/chan_dahdi.c | |
parent | 40547e7210d5ca2ba651bbcdb7af50eb330a5ed8 (diff) |
chan_dahdi: Remove some dead code.
........
Merged revisions 431992 from http://svn.asterisk.org/svn/asterisk/branches/11
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@431993 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_dahdi.c')
-rw-r--r-- | channels/chan_dahdi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index 10b6295cd..72c8497f0 100644 --- a/channels/chan_dahdi.c +++ b/channels/chan_dahdi.c @@ -1423,7 +1423,8 @@ static int my_distinctive_ring(struct ast_channel *chan, void *pvt, int idx, int for (;;) { i = DAHDI_IOMUX_READ | DAHDI_IOMUX_SIGEVENT; - if ((res = ioctl(p->subs[idx].dfd, DAHDI_IOMUX, &i))) { + res = ioctl(p->subs[idx].dfd, DAHDI_IOMUX, &i); + if (res) { ast_log(LOG_WARNING, "I/O MUX failed: %s\n", strerror(errno)); ast_hangup(chan); return 1; @@ -1458,7 +1459,6 @@ static int my_distinctive_ring(struct ast_channel *chan, void *pvt, int idx, int } if (analog_p->ringt > 0) { if (!(--analog_p->ringt)) { - res = -1; break; } } |