mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04: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 <[email protected]> Acked-by: Vineet Gupta <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
0d8570ad7e
commit
5c02fab62e
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue