From: Jingoo Han Date: Mon, 9 Sep 2013 05:09:55 +0000 (+0900) Subject: serial: ifx6x60: Remove casting the return value which is a void pointer X-Git-Tag: upstream/snapshot3+hdmi~4060^2~68 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7a89c79a946d72597fb96a06a9a9e95ff6b832b4;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git serial: ifx6x60: 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/ifx6x60.c b/drivers/tty/serial/ifx6x60.c index af286e6..5903909 100644 --- a/drivers/tty/serial/ifx6x60.c +++ b/drivers/tty/serial/ifx6x60.c @@ -1008,7 +1008,7 @@ static int ifx_spi_spi_probe(struct spi_device *spi) return -ENODEV; } - pl_data = (struct ifx_modem_platform_data *)dev_get_platdata(&spi->dev); + pl_data = dev_get_platdata(&spi->dev); if (!pl_data) { dev_err(&spi->dev, "missing platform data!"); return -ENODEV;