serial: samsung: Remove redundant label
authorTushar Behera <tushar.b@samsung.com>
Mon, 23 Jun 2014 06:02:14 +0000 (11:32 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jul 2014 00:13:54 +0000 (17:13 -0700)
probe_err label only returns the error code. This label can be removed
and the error code can be returned directly.

Signed-off-by: Tushar Behera <tushar.b@samsung.com>
Reviewed-by: Sachin Kamat <sachin.kamat@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/samsung.c

index c1d3ebdf3b97cf25f81699db1c697dcdf2f478cd..bf9301094c41ff07c0b301c20472dcf517abf984 100644 (file)
@@ -1303,7 +1303,7 @@ static int s3c24xx_serial_probe(struct platform_device *pdev)
 
        ret = s3c24xx_serial_init_port(ourport, pdev);
        if (ret < 0)
-               goto probe_err;
+               return ret;
 
        if (!s3c24xx_uart_drv.state) {
                ret = uart_register_driver(&s3c24xx_uart_drv);
@@ -1335,9 +1335,6 @@ static int s3c24xx_serial_probe(struct platform_device *pdev)
                dev_err(&pdev->dev, "failed to add cpufreq notifier\n");
 
        return 0;
-
- probe_err:
-       return ret;
 }
 
 static int s3c24xx_serial_remove(struct platform_device *dev)
This page took 0.026155 seconds and 5 git commands to generate.