From: Alexey Klimov Date: Tue, 30 Jun 2015 18:03:58 +0000 (+0300) Subject: spi/s3c24xx: remove unnecessary memset of s3c24xx_spi X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=385a9c8fccc0308dbd8182c57b29a95e01e29688;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git spi/s3c24xx: remove unnecessary memset of s3c24xx_spi Memory for this struct 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 Reviewed-by: Daniel Kurtz Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-s3c24xx.c b/drivers/spi/spi-s3c24xx.c index f747ca269986..f36bc320a807 100644 --- a/drivers/spi/spi-s3c24xx.c +++ b/drivers/spi/spi-s3c24xx.c @@ -501,7 +501,6 @@ static int s3c24xx_spi_probe(struct platform_device *pdev) } hw = spi_master_get_devdata(master); - memset(hw, 0, sizeof(struct s3c24xx_spi)); hw->master = master; hw->pdata = pdata = dev_get_platdata(&pdev->dev);