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 <jg1.han@samsung.com>
Acked-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Jingoo Han 2013-09-09 14:06:45 +09:00 committed by Greg Kroah-Hartman
parent 7fb8c56c7f
commit 0d8570ad7e
1 changed files with 1 additions and 1 deletions

View File

@ -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;