Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 248668
b: refs/heads/master
c: 6d742f6
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Slaby authored and Greg Kroah-Hartman committed Apr 25, 2011
1 parent 698ff5d commit afb2e9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 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: c29bd8d89c9423aed182dbfdb6527b576a2f3552
refs/heads/master: 6d742f655efe767dc77a099b57297fa417afc473
13 changes: 1 addition & 12 deletions trunk/drivers/tty/nozomi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1690,11 +1690,6 @@ static int ntty_write(struct tty_struct *tty, const unsigned char *buffer,

mutex_lock(&port->tty_sem);

if (unlikely(!port->port.count)) {
DBG1(" ");
goto exit;
}

rval = kfifo_in(&port->fifo_ul, (unsigned char *)buffer, count);

/* notify card */
Expand Down Expand Up @@ -1740,8 +1735,7 @@ static int ntty_write_room(struct tty_struct *tty)

if (dc) {
mutex_lock(&port->tty_sem);
if (port->port.count)
room = kfifo_avail(&port->fifo_ul);
room = kfifo_avail(&port->fifo_ul);
mutex_unlock(&port->tty_sem);
}
return room;
Expand Down Expand Up @@ -1889,11 +1883,6 @@ static s32 ntty_chars_in_buffer(struct tty_struct *tty)
goto exit_in_buffer;
}

if (unlikely(!port->port.count)) {
dev_err(&dc->pdev->dev, "No tty open?\n");
goto exit_in_buffer;
}

rval = kfifo_len(&port->fifo_ul);

exit_in_buffer:
Expand Down

0 comments on commit afb2e9c

Please sign in to comment.