aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-09-09 01:10:30 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-09-26 17:29:59 -0400
commitd4aab2064adbd0660ab9cbfc3e93eae8216b41aa (patch)
treefe96ef133e1caeb396cbba67a80a8cf73a0641c5 /drivers/tty
parent7a89c79a946d72597fb96a06a9a9e95ff6b832b4 (diff)
serial: samsung: Remove casting the return value which is a void pointer
Casting the return value which is a void pointer is redundant. The conversion from void pointer to any other pointer type is guaranteed by the C programming language. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Acked-by: Vineet Gupta <vgupta@synopsys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/samsung.c2
-rw-r--r--drivers/tty/serial/samsung.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/serial/samsung.c b/drivers/tty/serial/samsung.c
index f3dfa19a1cb8..81f3dbabaaed 100644
--- a/drivers/tty/serial/samsung.c
+++ b/drivers/tty/serial/samsung.c
@@ -1254,7 +1254,7 @@ static int s3c24xx_serial_probe(struct platform_device *pdev)
1254 ourport->baudclk = ERR_PTR(-EINVAL); 1254 ourport->baudclk = ERR_PTR(-EINVAL);
1255 ourport->info = ourport->drv_data->info; 1255 ourport->info = ourport->drv_data->info;
1256 ourport->cfg = (dev_get_platdata(&pdev->dev)) ? 1256 ourport->cfg = (dev_get_platdata(&pdev->dev)) ?
1257 (struct s3c2410_uartcfg *)dev_get_platdata(&pdev->dev) : 1257 dev_get_platdata(&pdev->dev) :
1258 ourport->drv_data->def_cfg; 1258 ourport->drv_data->def_cfg;
1259 1259
1260 ourport->port.fifosize = (ourport->info->fifosize) ? 1260 ourport->port.fifosize = (ourport->info->fifosize) ?
diff --git a/drivers/tty/serial/samsung.h b/drivers/tty/serial/samsung.h
index aaa617a6c499..8827e5424cef 100644
--- a/drivers/tty/serial/samsung.h
+++ b/drivers/tty/serial/samsung.h
@@ -63,7 +63,7 @@ struct s3c24xx_uart_port {
63 63
64/* conversion functions */ 64/* conversion functions */
65 65
66#define s3c24xx_dev_to_port(__dev) (struct uart_port *)dev_get_drvdata(__dev) 66#define s3c24xx_dev_to_port(__dev) dev_get_drvdata(__dev)
67 67
68/* register access controls */ 68/* register access controls */
69 69