diff options
author | 2012-02-01 13:33:42 +0100 | |
---|---|---|
committer | 2012-02-01 17:10:52 -0700 | |
commit | 90bbf4fdf2dc64aa7c20a93a9744c56a566baf26 (patch) | |
tree | 2a2064393255a8da679c9c38c426e76fdc896430 /drivers/spi/spi-nuc900.c | |
parent | Merge branch 'spi/s3c64xx' of git://git.kernel.org/pub/scm/linux/kernel/git/b... (diff) | |
download | linux-90bbf4fdf2dc64aa7c20a93a9744c56a566baf26.tar.gz linux-90bbf4fdf2dc64aa7c20a93a9744c56a566baf26.tar.bz2 linux-90bbf4fdf2dc64aa7c20a93a9744c56a566baf26.zip |
spi/nuc900: Remove unnecessary memset of struct nuc900_spi
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>
Diffstat (limited to 'drivers/spi/spi-nuc900.c')
-rw-r--r-- | drivers/spi/spi-nuc900.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/spi/spi-nuc900.c b/drivers/spi/spi-nuc900.c index 182e9c873822..dae8be229c5d 100644 --- 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; |