Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 64353
b: refs/heads/master
c: abcb1ff
h: refs/heads/master
i:
  64351: ff109e1
v: v3
  • Loading branch information
Jesper Juhl authored and Linus Torvalds committed Aug 24, 2007
1 parent 5802cc7 commit 0f24322
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: 87bd1e9aaf067050bd88b3219b1582e8f67f7b87
refs/heads/master: abcb1ff326bfe74f3611d7de653276540ea060dd
6 changes: 2 additions & 4 deletions trunk/drivers/char/tty_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -2063,8 +2063,7 @@ static int init_dev(struct tty_driver *driver, int idx,
}

if (!*tp_loc) {
tp = (struct ktermios *) kmalloc(sizeof(struct ktermios),
GFP_KERNEL);
tp = kmalloc(sizeof(struct ktermios), GFP_KERNEL);
if (!tp)
goto free_mem_out;
*tp = driver->init_termios;
Expand Down Expand Up @@ -2094,8 +2093,7 @@ static int init_dev(struct tty_driver *driver, int idx,
}

if (!*o_tp_loc) {
o_tp = (struct ktermios *)
kmalloc(sizeof(struct ktermios), GFP_KERNEL);
o_tp = kmalloc(sizeof(struct ktermios), GFP_KERNEL);
if (!o_tp)
goto free_mem_out;
*o_tp = driver->other->init_termios;
Expand Down

0 comments on commit 0f24322

Please sign in to comment.