Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 248671
b: refs/heads/master
c: 32ad3a7
h: refs/heads/master
i:
  248669: b201dfc
  248667: 698ff5d
  248663: f33c121
  248655: f19f3f5
  248639: 97c2811
v: v3
  • Loading branch information
Jiri Slaby authored and Greg Kroah-Hartman committed Apr 25, 2011
1 parent a0d890f commit bf75804
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 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: 0ad7c9af3e1cbb97082062266705d6cb5fb207ee
refs/heads/master: 32ad3a77b256948a326c3f68db6acaad2b6953e7
9 changes: 0 additions & 9 deletions trunk/drivers/tty/serial/serial_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1529,15 +1529,6 @@ static int uart_open(struct tty_struct *tty, struct file *filp)
BUG_ON(!tty_locked());
pr_debug("uart_open(%d) called\n", line);

/*
* tty->driver->num won't change, so we won't fail here with
* tty->driver_data set to something non-NULL (and therefore
* we won't get caught by uart_close()).
*/
retval = -ENODEV;
if (line >= tty->driver->num)
goto fail;

/*
* We take the semaphore inside uart_get to guarantee that we won't
* be re-entered while allocating the state structure, or while we
Expand Down

0 comments on commit bf75804

Please sign in to comment.