diff options
author | Xiaofei Tan <tanxiaofei@huawei.com> | 2021-04-07 15:06:47 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-04-10 10:33:00 +0200 |
commit | d72383591d36b6e8b7398d36b9cc1d39bfc75e68 (patch) | |
tree | 0ea4bd1e057c19cfb0c47fe81ce604858ea96849 /drivers/tty/tty_ldisc.c | |
parent | 5d3945e84b801a1fe068e0e98a0ca38b84d7d0b5 (diff) | |
download | linux-stable-d72383591d36b6e8b7398d36b9cc1d39bfc75e68.tar.gz linux-stable-d72383591d36b6e8b7398d36b9cc1d39bfc75e68.tar.bz2 linux-stable-d72383591d36b6e8b7398d36b9cc1d39bfc75e68.zip |
tty: tty_ldisc: Add a blank line after declarations
Add a blank line after declarations, reported by checkpatch.pl.
Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
Link: https://lore.kernel.org/r/1617779210-51576-8-git-send-email-tanxiaofei@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/tty_ldisc.c')
-rw-r--r-- | drivers/tty/tty_ldisc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/tty/tty_ldisc.c b/drivers/tty/tty_ldisc.c index 2992319022cc..df0b58905eb7 100644 --- a/drivers/tty/tty_ldisc.c +++ b/drivers/tty/tty_ldisc.c @@ -771,6 +771,7 @@ void tty_ldisc_hangup(struct tty_struct *tty, bool reinit) int tty_ldisc_setup(struct tty_struct *tty, struct tty_struct *o_tty) { int retval = tty_ldisc_open(tty, tty->ldisc); + if (retval) return retval; @@ -829,6 +830,7 @@ EXPORT_SYMBOL_GPL(tty_ldisc_release); int tty_ldisc_init(struct tty_struct *tty) { struct tty_ldisc *ld = tty_ldisc_get(tty, N_TTY); + if (IS_ERR(ld)) return PTR_ERR(ld); tty->ldisc = ld; |