linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Grant Likely <grant.likely@secretlab.ca>
To: "Govindraj.R" <govindraj.raja@ti.com>
Cc: spi-devel-general@lists.sourceforge.net, stable@kernel.org
Subject: Re: [PATCH 3/3] omap2_spi: fix compilation warning.
Date: Fri, 3 Jun 2011 14:59:54 -0600	[thread overview]
Message-ID: <20110603205954.GJ17972@ponder.secretlab.ca> (raw)
In-Reply-To: <1306908084-28959-1-git-send-email-govindraj.raja@ti.com>

On Wed, Jun 01, 2011 at 11:31:24AM +0530, Govindraj.R wrote:
> fix below compilation warning.
> 
> drivers/spi/omap2_mcspi.c: In function 'omap2_mcspi_txrx_dma':
> drivers/spi/omap2_mcspi.c:301: warning: 'elements' may be used uninitialized in this function
> 
> Signed-off-by: Govindraj.R <govindraj.raja@ti.com>

Applied, thanks.

Should got to stable too.

g.

> ---
>  drivers/spi/omap2_mcspi.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/spi/omap2_mcspi.c b/drivers/spi/omap2_mcspi.c
> index 6f86ba0..969cdd2 100644
> --- a/drivers/spi/omap2_mcspi.c
> +++ b/drivers/spi/omap2_mcspi.c
> @@ -298,7 +298,7 @@ omap2_mcspi_txrx_dma(struct spi_device *spi, struct spi_transfer *xfer)
>  	unsigned int		count, c;
>  	unsigned long		base, tx_reg, rx_reg;
>  	int			word_len, data_type, element_count;
> -	int			elements;
> +	int			elements = 0;
>  	u32			l;
>  	u8			* rx;
>  	const u8		* tx;
> -- 
> 1.7.0.4
> 

_______________________________________________
stable mailing list
stable@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/stable

      reply	other threads:[~2011-06-03 20:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-01  6:01 [PATCH 3/3] omap2_spi: fix compilation warning Govindraj.R
2011-06-03 20:59 ` 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=20110603205954.GJ17972@ponder.secretlab.ca \
    --to=grant.likely@secretlab.ca \
    --cc=govindraj.raja@ti.com \
    --cc=spi-devel-general@lists.sourceforge.net \
    --cc=stable@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).