linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/2] spi/rockchip: remove unnecessary memset of rockchip_spi
@ 2015-06-30 18:04 Alexey Klimov
  2015-07-07 13:58 ` Applied "spi/rockchip: remove unnecessary memset of rockchip_spi" to the spi tree Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Alexey Klimov @ 2015-06-30 18:04 UTC (permalink / raw)
  To: linux-spi, broonie
  Cc: linux-samsung-soc, klimov.linux, addy.ke, linux-rockchip

Memory for struct rockchip_spi is allocated by spi_alloc_master()
using kzalloc() so it doesn't need to be set to 0 one more time.

Signed-off-by: Alexey Klimov <klimov.linux@gmail.com>
---
 drivers/spi/spi-rockchip.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/spi/spi-rockchip.c b/drivers/spi/spi-rockchip.c
index 68e7efe..79a8bc4 100644
--- a/drivers/spi/spi-rockchip.c
+++ b/drivers/spi/spi-rockchip.c
@@ -645,7 +645,6 @@ static int rockchip_spi_probe(struct platform_device *pdev)
 	platform_set_drvdata(pdev, master);
 
 	rs = spi_master_get_devdata(master);
-	memset(rs, 0, sizeof(struct rockchip_spi));
 
 	/* Get basic io resource and map it */
 	mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-- 
1.9.1

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

end of thread, other threads:[~2015-07-07 13:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-30 18:04 [PATCH 2/2] spi/rockchip: remove unnecessary memset of rockchip_spi Alexey Klimov
2015-07-07 13:58 ` Applied "spi/rockchip: remove unnecessary memset of rockchip_spi" to the spi tree Mark Brown

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