From: grant.likely@secretlab.ca (Grant Likely)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] spi/nuc900: Remove unnecessary memset of struct nuc900_spi
Date: Wed, 1 Feb 2012 17:11:07 -0700 [thread overview]
Message-ID: <20120202001107.GC15343@ponder.secretlab.ca> (raw)
In-Reply-To: <1328099622-14058-1-git-send-email-tklauser@distanz.ch>
On Wed, Feb 01, 2012 at 01:33:42PM +0100, Tobias Klauser wrote:
> 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>
Merged, thanks.
g.
> ---
> 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 182e9c8..dae8be2 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;
> --
> 1.7.5.4
>
prev parent reply other threads:[~2012-02-02 0:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-01 12:33 [PATCH] spi/nuc900: Remove unnecessary memset of struct nuc900_spi Tobias Klauser
2012-02-02 0:11 ` Grant Likely [this message]
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=20120202001107.GC15343@ponder.secretlab.ca \
--to=grant.likely@secretlab.ca \
--cc=linux-arm-kernel@lists.infradead.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).