diff options
-rw-r--r-- | kernel/wctdm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/wctdm.c b/kernel/wctdm.c index 8d47c61..7176c68 100644 --- a/kernel/wctdm.c +++ b/kernel/wctdm.c @@ -772,7 +772,8 @@ static inline void wctdm_voicedaa_check_hook(struct wctdm *wc, int card) if (!fxo->offhook) { if (fwringdetect) { res = wc->reg0shadow[card] & 0x60; - if (fxo->ringdebounce--) { + if (fxo->ringdebounce) { + --fxo->ringdebounce; if (res && (res != fxo->lastrdtx) && (fxo->battery == BATTERY_PRESENT)) { if (!fxo->wasringing) { |