diff options
author | Alexey Klimov <klimov.linux@gmail.com> | 2015-06-30 20:03:58 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-07-07 14:11:27 +0200 |
commit | 385a9c8fccc0308dbd8182c57b29a95e01e29688 (patch) | |
tree | 705a246074223715768208448a759fcfbf909ce3 /drivers/spi/spi-s3c24xx.c | |
parent | Linux 4.2-rc1 (diff) | |
download | linux-385a9c8fccc0308dbd8182c57b29a95e01e29688.tar.xz linux-385a9c8fccc0308dbd8182c57b29a95e01e29688.zip |
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 <klimov.linux@gmail.com>
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-s3c24xx.c')
-rw-r--r-- | drivers/spi/spi-s3c24xx.c | 1 |
1 files changed, 0 insertions, 1 deletions
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); |