aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/isdn/hardware/mISDN/avmfritz.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/isdn/hardware/mISDN/avmfritz.c b/drivers/isdn/hardware/mISDN/avmfritz.c
index c08fc605e56b..fa6ca4733725 100644
--- a/drivers/isdn/hardware/mISDN/avmfritz.c
+++ b/drivers/isdn/hardware/mISDN/avmfritz.c
@@ -449,7 +449,8 @@ hdlc_fill_fifo(struct bchannel *bch)
449{ 449{
450 struct fritzcard *fc = bch->hw; 450 struct fritzcard *fc = bch->hw;
451 struct hdlc_hw *hdlc; 451 struct hdlc_hw *hdlc;
452 int count, fs, cnt = 0, idx, fillempty = 0; 452 int count, fs, cnt = 0, idx;
453 bool fillempty = false;
453 u8 *p; 454 u8 *p;
454 u32 *ptr, val, addr; 455 u32 *ptr, val, addr;
455 456
@@ -462,7 +463,7 @@ hdlc_fill_fifo(struct bchannel *bch)
462 return; 463 return;
463 count = fs; 464 count = fs;
464 p = bch->fill; 465 p = bch->fill;
465 fillempty = 1; 466 fillempty = true;
466 } else { 467 } else {
467 count = bch->tx_skb->len - bch->tx_idx; 468 count = bch->tx_skb->len - bch->tx_idx;
468 if (count <= 0) 469 if (count <= 0)
@@ -477,7 +478,7 @@ hdlc_fill_fifo(struct bchannel *bch)
477 hdlc->ctrl.sr.cmd |= HDLC_CMD_XME; 478 hdlc->ctrl.sr.cmd |= HDLC_CMD_XME;
478 } 479 }
479 ptr = (u32 *)p; 480 ptr = (u32 *)p;
480 if (fillempty) { 481 if (!fillempty) {
481 pr_debug("%s.B%d: %d/%d/%d", fc->name, bch->nr, count, 482 pr_debug("%s.B%d: %d/%d/%d", fc->name, bch->nr, count,
482 bch->tx_idx, bch->tx_skb->len); 483 bch->tx_idx, bch->tx_skb->len);
483 bch->tx_idx += count; 484 bch->tx_idx += count;