serial: mpsc: 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:
Родитель
0d8570ad7e
Коммит
5c02fab62e
|
@ -2030,7 +2030,7 @@ static void mpsc_drv_get_platform_data(struct mpsc_port_info *pi,
|
|||
{
|
||||
struct mpsc_pdata *pdata;
|
||||
|
||||
pdata = (struct mpsc_pdata *)dev_get_platdata(&pd->dev);
|
||||
pdata = dev_get_platdata(&pd->dev);
|
||||
|
||||
pi->port.uartclk = pdata->brg_clk_freq;
|
||||
pi->port.iotype = UPIO_MEM;
|
||||
|
|
Загрузка…
Ссылка в новой задаче