Commit 62aacabc authored by Qinglang Miao's avatar Qinglang Miao Committed by Vasily Gorbik

s390/3215: simplify the return expression of tty3215_open()

Simplify the return expression.

Link: https://lkml.kernel.org/r/20200921131101.93037-1-miaoqinglang@huawei.comSigned-off-by: default avatarQinglang Miao <miaoqinglang@huawei.com>
Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
parent ad5ceb33
...@@ -978,7 +978,6 @@ static int tty3215_install(struct tty_driver *driver, struct tty_struct *tty) ...@@ -978,7 +978,6 @@ static int tty3215_install(struct tty_driver *driver, struct tty_struct *tty)
static int tty3215_open(struct tty_struct *tty, struct file * filp) static int tty3215_open(struct tty_struct *tty, struct file * filp)
{ {
struct raw3215_info *raw = tty->driver_data; struct raw3215_info *raw = tty->driver_data;
int retval;
tty_port_tty_set(&raw->port, tty); tty_port_tty_set(&raw->port, tty);
...@@ -986,11 +985,7 @@ static int tty3215_open(struct tty_struct *tty, struct file * filp) ...@@ -986,11 +985,7 @@ static int tty3215_open(struct tty_struct *tty, struct file * filp)
/* /*
* Start up 3215 device * Start up 3215 device
*/ */
retval = raw3215_startup(raw); return raw3215_startup(raw);
if (retval)
return retval;
return 0;
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment