diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-09 01:07:54 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-09-26 17:29:58 -0400 |
commit | 5c02fab62e953a5281d7daa7bdd18892c4b43741 (patch) | |
tree | ef2ebc1279b16935b7e5f0575af968123a6ca113 /drivers/tty/serial/mpsc.c | |
parent | 0d8570ad7ec99f4c89135657ea2821bdae78423f (diff) |
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>
Diffstat (limited to 'drivers/tty/serial/mpsc.c')
-rw-r--r-- | drivers/tty/serial/mpsc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/mpsc.c b/drivers/tty/serial/mpsc.c index 8d702677acc5..e30a3ca3cea3 100644 --- a/drivers/tty/serial/mpsc.c +++ b/drivers/tty/serial/mpsc.c | |||
@@ -2030,7 +2030,7 @@ static void mpsc_drv_get_platform_data(struct mpsc_port_info *pi, | |||
2030 | { | 2030 | { |
2031 | struct mpsc_pdata *pdata; | 2031 | struct mpsc_pdata *pdata; |
2032 | 2032 | ||
2033 | pdata = (struct mpsc_pdata *)dev_get_platdata(&pd->dev); | 2033 | pdata = dev_get_platdata(&pd->dev); |
2034 | 2034 | ||
2035 | pi->port.uartclk = pdata->brg_clk_freq; | 2035 | pi->port.uartclk = pdata->brg_clk_freq; |
2036 | pi->port.iotype = UPIO_MEM; | 2036 | pi->port.iotype = UPIO_MEM; |