diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2020-08-02 19:50:07 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-08-18 17:52:37 +0100 |
commit | 2494174e04e7f4e58d1363adb13c0ae23b64d37c (patch) | |
tree | e1a546af7dc72081bac0d34112e929ec82373f88 /drivers/spi/spi-armada-3700.c | |
parent | c3158a891bcc4c79523804e0d09a195fb1f815b4 (diff) | |
download | linux-2494174e04e7f4e58d1363adb13c0ae23b64d37c.tar.bz2 |
spi: a3700: Remove a useless memset
Memory allocated by 'spi_alloc_master()' is already zeroed.
Remove a redundant memset.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/20200802175007.703995-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-armada-3700.c')
-rw-r--r-- | drivers/spi/spi-armada-3700.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/spi/spi-armada-3700.c b/drivers/spi/spi-armada-3700.c index fcde419e480c..46feafe4e201 100644 --- a/drivers/spi/spi-armada-3700.c +++ b/drivers/spi/spi-armada-3700.c @@ -848,7 +848,6 @@ static int a3700_spi_probe(struct platform_device *pdev) platform_set_drvdata(pdev, master); spi = spi_master_get_devdata(master); - memset(spi, 0, sizeof(struct a3700_spi)); spi->master = master; |