diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2014-10-27 19:49:38 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-11-06 07:03:20 +0300 |
commit | cb0f0a5ff43c1ae05c6d696857c42dceb0cda7f8 (patch) | |
tree | 68334c6b34d167f08fb9ff95f4e8e805b8752572 /drivers/tty/serial/imx.c | |
parent | c0d1c6b0f0dc731b1b17f48876f048af36ad3ce8 (diff) | |
download | linux-cb0f0a5ff43c1ae05c6d696857c42dceb0cda7f8.tar.xz |
serial: imx: Remove unneeded goto label
Instead of jumping to 'error_out1' label we can simplify the code and return the
error code directly.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/imx.c')
-rw-r--r-- | drivers/tty/serial/imx.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index e4a2846f34a6..e7dc2102bb27 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c @@ -1076,11 +1076,11 @@ static int imx_startup(struct uart_port *port) retval = clk_prepare_enable(sport->clk_per); if (retval) - goto error_out1; + return retval; retval = clk_prepare_enable(sport->clk_ipg); if (retval) { clk_disable_unprepare(sport->clk_per); - goto error_out1; + return retval; } imx_setup_ufcr(sport, 0); @@ -1170,9 +1170,6 @@ static int imx_startup(struct uart_port *port) } return 0; - -error_out1: - return retval; } static void imx_shutdown(struct uart_port *port) |