Skip to content

Commit

Permalink
serial: samsung: Remove redundant label
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tushar Behera authored and Greg Kroah-Hartman committed Jul 10, 2014
1 parent cd3de83 commit 8ad711a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions drivers/tty/serial/samsung.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 8ad711a

Please sign in to comment.