diff options
author | Noe Rubinstein <nrubinstein@proformatique.com> | 2010-10-07 12:18:17 +0200 |
---|---|---|
committer | Noe Rubinstein <nrubinstein@proformatique.com> | 2010-10-07 12:18:17 +0200 |
commit | 912dab9bde16a394c7fe43661e8bb0193a552de2 (patch) | |
tree | b5c34d3b355c8ce6f181a9cdfbcc70ed62d6ce61 /xhfc | |
parent | 1d97202fdf0aaf20807da6592055b71817a8cf11 (diff) |
remove LSD-induced control structures
Diffstat (limited to 'xhfc')
-rw-r--r-- | xhfc/xhfc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xhfc/xhfc.c b/xhfc/xhfc.c index 0e35f78..76063c8 100644 --- a/xhfc/xhfc.c +++ b/xhfc/xhfc.c @@ -594,12 +594,12 @@ irqreturn_t xhfc_interrupt(int irq, void *dev_id, struct pt_regs* ptregs) if (s->running && s->sigchan) { - while (hdlc_rx_frame(s)) // XXX what does that mean? - break; - + /* No need to loop here, no need to rx/tx more than one + * HDLC frame per millisecond. */ + hdlc_rx_frame(s); if (atomic_read(&s->hdlc_pending)) - while (hdlc_tx_frame(s)) // XXX - break; + hdlc_tx_frame(s); + #if 0 // Why is this commented out? XXX dahdi_receive(&s->span); dahdi_transmit(&s->span); |