aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/samsung.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-09-09 14:10:30 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-09-26 14:29:59 -0700
commitd4aab2064adbd0660ab9cbfc3e93eae8216b41aa (patch)
treefe96ef133e1caeb396cbba67a80a8cf73a0641c5 /drivers/tty/serial/samsung.c
parentserial: ifx6x60: Remove casting the return value which is a void pointer (diff)
downloadlinux-dev-d4aab2064adbd0660ab9cbfc3e93eae8216b41aa.tar.xz
linux-dev-d4aab2064adbd0660ab9cbfc3e93eae8216b41aa.zip
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/serial/samsung.c')
-rw-r--r--drivers/tty/serial/samsung.c2
1 files changed, 1 insertions, 1 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)
ourport->baudclk = ERR_PTR(-EINVAL);
ourport->info = ourport->drv_data->info;
ourport->cfg = (dev_get_platdata(&pdev->dev)) ?
- (struct s3c2410_uartcfg *)dev_get_platdata(&pdev->dev) :
+ dev_get_platdata(&pdev->dev) :
ourport->drv_data->def_cfg;
ourport->port.fifosize = (ourport->info->fifosize) ?