Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tbodt committed Nov 4, 2019
1 parent 64576c8 commit a31a37a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/pty.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ struct tty *pty_open_fake(struct tty_driver *driver) {
driver->limit = pty_slave.limit;
struct tty *tty = tty_get(driver, TTY_PSEUDO_SLAVE_MAJOR, pty_num);
if (IS_ERR(tty))
return PTR_ERR(tty);
return tty;
pty_slave_init_inode(tty);
return tty;
}
Expand Down

0 comments on commit a31a37a

Please sign in to comment.