summaryrefslogtreecommitdiff
path: root/xhfc
diff options
context:
space:
mode:
authorNoe Rubinstein <nrubinstein@proformatique.com>2010-10-07 12:18:17 +0200
committerNoe Rubinstein <nrubinstein@proformatique.com>2010-10-07 12:18:17 +0200
commit912dab9bde16a394c7fe43661e8bb0193a552de2 (patch)
treeb5c34d3b355c8ce6f181a9cdfbcc70ed62d6ce61 /xhfc
parent1d97202fdf0aaf20807da6592055b71817a8cf11 (diff)
remove LSD-induced control structures
Diffstat (limited to 'xhfc')
-rw-r--r--xhfc/xhfc.c10
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);