linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/7] serial: arc_uart: Remove casting the return value which is a void pointer
@ 2013-09-09  5:06 Jingoo Han
  2013-09-09  5:07 ` [PATCH 2/7] serial: mpsc: " Jingoo Han
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: Jingoo Han @ 2013-09-09  5:06 UTC (permalink / raw)
  To: 'Greg Kroah-Hartman'
  Cc: linux-serial, 'Vineet Gupta', 'Jingoo Han'

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/arc_uart.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/tty/serial/arc_uart.c b/drivers/tty/serial/arc_uart.c
index 569872f..c9f5c9d 100644
--- a/drivers/tty/serial/arc_uart.c
+++ b/drivers/tty/serial/arc_uart.c
@@ -533,7 +533,7 @@ arc_uart_init_one(struct platform_device *pdev, int dev_id)
 	unsigned long *plat_data;
 	struct arc_uart_port *uart = &arc_uart_ports[dev_id];
 
-	plat_data = (unsigned long *)dev_get_platdata(&pdev->dev);
+	plat_data = dev_get_platdata(&pdev->dev);
 	if (!plat_data)
 		return -ENODEV;
 
-- 
1.7.10.4



^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-09-09  7:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [PATCH 7/7] serial: mpc512x: " Jingoo Han
2013-09-09  6:05 ` [PATCH 1/7] serial: arc_uart: " Vineet Gupta

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).