projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d770e55
)
spi/s3c24xx: remove unnecessary memset of s3c24xx_spi
author
Alexey Klimov
<klimov.linux@gmail.com>
Tue, 30 Jun 2015 18:03:58 +0000
(21:03 +0300)
committer
Mark Brown
<broonie@kernel.org>
Tue, 7 Jul 2015 12:11:27 +0000
(13:11 +0100)
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>
drivers/spi/spi-s3c24xx.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/spi/spi-s3c24xx.c
b/drivers/spi/spi-s3c24xx.c
index f747ca26998624752cf1fbb6f9c051c477c49198..f36bc320a80799067e6402feeb2ebb64c4f58169 100644
(file)
--- 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);