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:
parent
7fb8c56c7f
commit
0d8570ad7e
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue