projects
/
GitHub
/
moto-9609
/
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:
bc26618
)
spi/nuc900: Remove unnecessary memset of struct nuc900_spi
author
Tobias Klauser
<tklauser@distanz.ch>
Wed, 1 Feb 2012 12:33:42 +0000
(13:33 +0100)
committer
Grant Likely
<grant.likely@secretlab.ca>
Thu, 2 Feb 2012 00:10:52 +0000
(17:10 -0700)
The memory allocated using kzalloc by spi_alloc_master so it doesn't
need to be set to 0 again.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/spi-nuc900.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/spi/spi-nuc900.c
b/drivers/spi/spi-nuc900.c
index 182e9c873822a64b6e9e25976470044eae8bc338..dae8be229c5d1bfdd38fe36b7ec00e3714a1081e 100644
(file)
--- a/
drivers/spi/spi-nuc900.c
+++ b/
drivers/spi/spi-nuc900.c
@@
-360,8
+360,6
@@
static int __devinit nuc900_spi_probe(struct platform_device *pdev)
}
hw = spi_master_get_devdata(master);
- memset(hw, 0, sizeof(struct nuc900_spi));
-
hw->master = spi_master_get(master);
hw->pdata = pdev->dev.platform_data;
hw->dev = &pdev->dev;