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:
committed by
Greg Kroah-Hartman
parent
7fb8c56c7f
commit
0d8570ad7e
@@ -533,7 +533,7 @@ arc_uart_init_one(struct platform_device *pdev, int dev_id)
|
|||||||
unsigned long *plat_data;
|
unsigned long *plat_data;
|
||||||
struct arc_uart_port *uart = &arc_uart_ports[dev_id];
|
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)
|
if (!plat_data)
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user