From: Christophe JAILLET Date: Sun, 2 Aug 2020 17:50:07 +0000 (+0200) Subject: spi: a3700: Remove a useless memset X-Git-Tag: v5.10.7~1093^2~125 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2494174e04e7f4e58d1363adb13c0ae23b64d37c;p=platform%2Fkernel%2Flinux-rpi.git spi: a3700: Remove a useless memset Memory allocated by 'spi_alloc_master()' is already zeroed. Remove a redundant memset. Signed-off-by: Christophe JAILLET Link: https://lore.kernel.org/r/20200802175007.703995-1-christophe.jaillet@wanadoo.fr Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-armada-3700.c b/drivers/spi/spi-armada-3700.c index fcde419..46feafe 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;