Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 385a9c8f authored by Alexey Klimov's avatar Alexey Klimov Committed by Mark Brown
Browse files

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: default avatarAlexey Klimov <klimov.linux@gmail.com>
Reviewed-by: default avatarDaniel Kurtz <djkurtz@chromium.org>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent d770e558
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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);