From: Jingoo Han <jg1.han@samsung.com>
To: 'Greg Kroah-Hartman' <gregkh@linuxfoundation.org>
Cc: linux-serial@vger.kernel.org, 'Jingoo Han' <jg1.han@samsung.com>
Subject: [PATCH 7/7] serial: mpc512x: Remove casting the return value which is a void pointer
Date: Mon, 09 Sep 2013 14:11:17 +0900 [thread overview]
Message-ID: <004001cead1b$03561b20$0a025160$%han@samsung.com> (raw)
In-Reply-To: <003a01cead1a$61749bb0$245dd310$%han@samsung.com>
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>
---
drivers/tty/serial/mpc52xx_uart.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/tty/serial/mpc52xx_uart.c b/drivers/tty/serial/mpc52xx_uart.c
index 5be1df3..e05a3b1 100644
--- a/drivers/tty/serial/mpc52xx_uart.c
+++ b/drivers/tty/serial/mpc52xx_uart.c
@@ -1766,7 +1766,7 @@ mpc52xx_uart_of_remove(struct platform_device *op)
static int
mpc52xx_uart_of_suspend(struct platform_device *op, pm_message_t state)
{
- struct uart_port *port = (struct uart_port *) platform_get_drvdata(op);
+ struct uart_port *port = platform_get_drvdata(op);
if (port)
uart_suspend_port(&mpc52xx_uart_driver, port);
@@ -1777,7 +1777,7 @@ mpc52xx_uart_of_suspend(struct platform_device *op, pm_message_t state)
static int
mpc52xx_uart_of_resume(struct platform_device *op)
{
- struct uart_port *port = (struct uart_port *) platform_get_drvdata(op);
+ struct uart_port *port = platform_get_drvdata(op);
if (port)
uart_resume_port(&mpc52xx_uart_driver, port);
--
1.7.10.4
next prev parent reply other threads:[~2013-09-09 5:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-09 5:06 [PATCH 1/7] serial: arc_uart: Remove casting the return value which is a void pointer Jingoo Han
2013-09-09 5:07 ` [PATCH 2/7] serial: mpsc: " Jingoo Han
2013-09-09 5:08 ` [PATCH 3/7] serial: bfin_uart: " Jingoo Han
2013-09-09 7:27 ` Zhang, Sonic
2013-09-09 5:09 ` [PATCH 4/7] serial: bfin_sport_uart: " Jingoo Han
2013-09-09 5:09 ` [PATCH 5/7] serial: ifx6x60: " Jingoo Han
2013-09-09 5:10 ` [PATCH 6/7] serial: samsung: " Jingoo Han
2013-09-09 5:11 ` Jingoo Han [this message]
2013-09-09 6:05 ` [PATCH 1/7] serial: arc_uart: " Vineet Gupta
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='004001cead1b$03561b20$0a025160$%han@samsung.com' \
--to=jg1.han@samsung.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-serial@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).