From: Jingoo Han Date: Mon, 9 Sep 2013 05:06:45 +0000 (+0900) Subject: serial: arc_uart: Remove casting the return value which is a void pointer X-Git-Tag: upstream/snapshot3+hdmi~4060^2~72 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0d8570ad7ec99f4c89135657ea2821bdae78423f;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git serial: arc_uart: 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 Acked-by: Vineet Gupta Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/arc_uart.c b/drivers/tty/serial/arc_uart.c index 569872f..c9f5c9d 100644 --- a/drivers/tty/serial/arc_uart.c +++ b/drivers/tty/serial/arc_uart.c @@ -533,7 +533,7 @@ arc_uart_init_one(struct platform_device *pdev, int dev_id) unsigned long *plat_data; struct arc_uart_port *uart = &arc_uart_ports[dev_id]; - plat_data = (unsigned long *)dev_get_platdata(&pdev->dev); + plat_data = dev_get_platdata(&pdev->dev); if (!plat_data) return -ENODEV;