diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-09 14:07:54 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-09-26 14:29:58 -0700 |
commit | 5c02fab62e953a5281d7daa7bdd18892c4b43741 (patch) | |
tree | ef2ebc1279b16935b7e5f0575af968123a6ca113 | |
parent | 0d8570ad7ec99f4c89135657ea2821bdae78423f (diff) | |
download | talos-obmc-linux-5c02fab62e953a5281d7daa7bdd18892c4b43741.tar.gz talos-obmc-linux-5c02fab62e953a5281d7daa7bdd18892c4b43741.zip |
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>
-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, { 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; |