Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304193
b: refs/heads/master
c: a2f8920
h: refs/heads/master
i:
  304191: c884544
v: v3
  • Loading branch information
Jiri Slaby authored and Greg Kroah-Hartman committed Apr 13, 2012
1 parent 0261f17 commit f00c97d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 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: 59d59b0600e541b4e94b891148c92f2e2d18f7c0
refs/heads/master: a2f892060f174e5f90041167ca00eb9e68badcb8
5 changes: 0 additions & 5 deletions trunk/drivers/tty/hvc/hvc_console.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,8 +317,6 @@ static int hvc_open(struct tty_struct *tty, struct file * filp)
/* Check and then increment for fast path open. */
if (hp->port.count++ > 0) {
spin_unlock_irqrestore(&hp->port.lock, flags);
/* FIXME why taking a reference here? */
tty_kref_get(tty);
hvc_kick();
return 0;
} /* else count == 0 */
Expand All @@ -338,7 +336,6 @@ static int hvc_open(struct tty_struct *tty, struct file * filp)
*/
if (rc) {
tty_port_tty_set(&hp->port, NULL);
tty_kref_put(tty);
tty->driver_data = NULL;
tty_port_put(&hp->port);
printk(KERN_ERR "hvc_open: request_irq failed with rc %d.\n", rc);
Expand Down Expand Up @@ -393,7 +390,6 @@ static void hvc_close(struct tty_struct *tty, struct file * filp)
spin_unlock_irqrestore(&hp->port.lock, flags);
}

tty_kref_put(tty);
tty_port_put(&hp->port);
}

Expand Down Expand Up @@ -433,7 +429,6 @@ static void hvc_hangup(struct tty_struct *tty)

while(temp_open_count) {
--temp_open_count;
tty_kref_put(tty);
tty_port_put(&hp->port);
}
}
Expand Down

0 comments on commit f00c97d

Please sign in to comment.