From: Alexey Klimov <klimov.linux@gmail.com>
To: linux-spi@vger.kernel.org, broonie@kernel.org
Cc: linux-samsung-soc@vger.kernel.org, klimov.linux@gmail.com,
addy.ke@rock-chips.com, linux-rockchip@lists.infradead.org
Subject: [PATCH 1/2] spi/s3c24xx: remove unnecessary memset of s3c24xx_spi
Date: Tue, 30 Jun 2015 21:03:58 +0300 [thread overview]
Message-ID: <1435687438.27701.12.camel@ceres> (raw)
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>
---
drivers/spi/spi-s3c24xx.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/spi/spi-s3c24xx.c b/drivers/spi/spi-s3c24xx.c
index f747ca2..f36bc32 100644
--- 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);
--
1.9.1
next reply other threads:[~2015-06-30 18:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-30 18:03 Alexey Klimov [this message]
2015-07-01 4:25 ` [PATCH 1/2] spi/s3c24xx: remove unnecessary memset of s3c24xx_spi Daniel Kurtz
2015-07-07 13:58 ` Applied "spi/s3c24xx: remove unnecessary memset of s3c24xx_spi" to the spi tree Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1435687438.27701.12.camel@ceres \
--to=klimov.linux@gmail.com \
--cc=addy.ke@rock-chips.com \
--cc=broonie@kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).