Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 296412
b: refs/heads/master
c: da645f3
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro authored and Richard Weinberger committed Mar 24, 2012
1 parent f2a08f3 commit 7afafe6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 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: 8998af2b4f7a4dd500198f9a7bd4dc8411568b7d
refs/heads/master: da645f3be912a377ada97268e36360b0a4389ab0
13 changes: 5 additions & 8 deletions trunk/arch/um/drivers/line.c
Original file line number Diff line number Diff line change
Expand Up @@ -640,14 +640,11 @@ int line_id(char **str, int *start_out, int *end_out)

int line_remove(struct line *lines, unsigned int num, int n, char **error_out)
{
int err;
char config[sizeof("conxxxx=none\0")];

sprintf(config, "%d=none", n);
err = line_setup(lines, num, config, error_out);
if (err >= 0)
err = 0;
return err;
if (n >= num) {
*error_out = "Device number out of range";
return -EINVAL;
}
return setup_one_line(lines, n, "none", INIT_ONE, error_out);
}

struct tty_driver *register_lines(struct line_driver *line_driver,
Expand Down

0 comments on commit 7afafe6

Please sign in to comment.