spi/rockchip: remove unnecessary memset of rockchip_spi
authorAlexey Klimov <klimov.linux@gmail.com>
Tue, 30 Jun 2015 18:04:07 +0000 (21:04 +0300)
committerMark Brown <broonie@kernel.org>
Tue, 7 Jul 2015 12:12:50 +0000 (13:12 +0100)
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>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-rockchip.c

index 68e7efeb9a27a6751d49ad3a6583b2fe5d97a811..79a8bc4f6cec9e32ec9c78627a2e68fc85ab5e12 100644 (file)
@@ -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);
This page took 0.026006 seconds and 5 git commands to generate.