diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-09 01:09:55 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-09-26 17:29:58 -0400 |
commit | 7a89c79a946d72597fb96a06a9a9e95ff6b832b4 (patch) | |
tree | 0b3373df466894bf706dd0ba3f11ca9380efb68c /drivers/tty | |
parent | aaba105e66e98bb11e017eece341346bd3e91871 (diff) |
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 <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/ifx6x60.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/ifx6x60.c b/drivers/tty/serial/ifx6x60.c index af286e6713eb..590390970996 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) | |||
1008 | return -ENODEV; | 1008 | return -ENODEV; |
1009 | } | 1009 | } |
1010 | 1010 | ||
1011 | pl_data = (struct ifx_modem_platform_data *)dev_get_platdata(&spi->dev); | 1011 | pl_data = dev_get_platdata(&spi->dev); |
1012 | if (!pl_data) { | 1012 | if (!pl_data) { |
1013 | dev_err(&spi->dev, "missing platform data!"); | 1013 | dev_err(&spi->dev, "missing platform data!"); |
1014 | return -ENODEV; | 1014 | return -ENODEV; |