Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 280690
b: refs/heads/master
c: 7962fce
h: refs/heads/master
v: v3
  • Loading branch information
Ilya Zykov authored and Greg Kroah-Hartman committed Nov 30, 2011
1 parent 5b3da18 commit 2a84cff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c8381c15b14b7c2d212c182d3b9b3fa7217994da
refs/heads/master: 7962fce9a052f34390b6dab9f11df1d2e48c138d
6 changes: 3 additions & 3 deletions trunk/drivers/tty/n_hdlc.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ static void n_hdlc_send_frames(struct n_hdlc *n_hdlc, struct tty_struct *tty)
__FILE__,__LINE__,tbuf,tbuf->count);

/* Send the next block of data to device */
tty->flags |= (1 << TTY_DO_WRITE_WAKEUP);
set_bit(TTY_DO_WRITE_WAKEUP, &tty->flags);
actual = tty->ops->write(tty, tbuf->buf, tbuf->count);

/* rollback was possible and has been done */
Expand Down Expand Up @@ -459,7 +459,7 @@ static void n_hdlc_send_frames(struct n_hdlc *n_hdlc, struct tty_struct *tty)
}

if (!tbuf)
tty->flags &= ~(1 << TTY_DO_WRITE_WAKEUP);
clear_bit(TTY_DO_WRITE_WAKEUP, &tty->flags);

/* Clear the re-entry flag */
spin_lock_irqsave(&n_hdlc->tx_buf_list.spinlock, flags);
Expand Down Expand Up @@ -491,7 +491,7 @@ static void n_hdlc_tty_wakeup(struct tty_struct *tty)
return;

if (tty != n_hdlc->tty) {
tty->flags &= ~(1 << TTY_DO_WRITE_WAKEUP);
clear_bit(TTY_DO_WRITE_WAKEUP, &tty->flags);
return;
}

Expand Down

0 comments on commit 2a84cff

Please sign in to comment.