mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 08:44:21 +08:00
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:
parent
0d8570ad7e
commit
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;
|
||||
|
Loading…
Reference in New Issue
Block a user