Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 321176
b: refs/heads/master
c: a84ccab
h: refs/heads/master
v: v3
  • Loading branch information
Richard Weinberger committed Jul 28, 2012
1 parent e8364a1 commit 3a9952f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 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: 79e0273d187c807dfec8d0cf450b8187cab5d3af
refs/heads/master: a84ccab132370a07c7ca0c6df8c96bbd16306c9a
6 changes: 0 additions & 6 deletions trunk/arch/um/drivers/line.c
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,6 @@ int setup_one_line(struct line *lines, int n, char *init,
struct tty_driver *driver = line->driver->driver;
int err = -EINVAL;

mutex_lock(&line->count_lock);

if (line->port.count) {
*error_out = "Device is already open";
goto out;
Expand Down Expand Up @@ -425,7 +423,6 @@ int setup_one_line(struct line *lines, int n, char *init,
}
}
out:
mutex_unlock(&line->count_lock);
return err;
}

Expand Down Expand Up @@ -513,7 +510,6 @@ int line_get_config(char *name, struct line *lines, unsigned int num, char *str,

line = &lines[dev];

mutex_lock(&line->count_lock);
if (!line->valid)
CONFIG_CHUNK(str, size, n, "none", 1);
else {
Expand All @@ -525,7 +521,6 @@ int line_get_config(char *name, struct line *lines, unsigned int num, char *str,
tty_kref_put(tty);
}
}
mutex_unlock(&line->count_lock);

return n;
}
Expand Down Expand Up @@ -578,7 +573,6 @@ int register_lines(struct line_driver *line_driver,
tty_port_init(&lines[i].port);
lines[i].port.ops = &line_port_ops;
spin_lock_init(&lines[i].lock);
mutex_init(&lines[i].count_lock);
lines[i].driver = line_driver;
INIT_LIST_HEAD(&lines[i].chan_list);
}
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/um/drivers/line.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ struct line_driver {

struct line {
struct tty_port port;
struct mutex count_lock;
int valid;

char *init_str;
Expand Down

0 comments on commit 3a9952f

Please sign in to comment.