mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> Acked-by: Vineet Gupta <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
aaba105e66
commit
7a89c79a94
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue