diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2008-11-02 17:33:10 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2008-11-02 17:33:10 +0000 |
commit | 114a9bb0cdd330d3e1508ee6f0b6207ae906a281 (patch) | |
tree | 4dbf430cc598ae01ab37c25b2f9792efc908b55d /drivers/dahdi/dahdi-base.c | |
parent | ee2556c852dccdea956178ba3008dfbb663351a2 (diff) |
dahdi-base: hw_echocancel_off: return 0 if no hardware EC
If the span has no hardware EC, return 0, rather than a random
uninitialized value (which was no harm, as that return value is always
ignored anyway).
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@5207 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/dahdi-base.c')
-rw-r--r-- | drivers/dahdi/dahdi-base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dahdi/dahdi-base.c b/drivers/dahdi/dahdi-base.c index 82d4600..9d2421d 100644 --- a/drivers/dahdi/dahdi-base.c +++ b/drivers/dahdi/dahdi-base.c @@ -1058,7 +1058,7 @@ static void reset_conf(struct dahdi_chan *chan) static inline int hw_echocancel_off(struct dahdi_chan *chan) { - int ret; + int ret = 0; if (!chan->span) return -ENODEV; |