public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Kukjin Kim <kgene.kim@samsung.com>
To: "'Cong Ding'" <dinggnu@gmail.com>,
	"'Ben Dooks'" <ben-linux@fluff.org>,
	"'Russell King'" <linux@arm.linux.org.uk>,
	linux-arm-kernel@lists.infradead.org,
	linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: RE: [PATCH] arm: mach-s3c24xx/common.c: fix uninitialized variable warning
Date: Thu, 17 Jan 2013 19:57:39 -0800	[thread overview]
Message-ID: <00bf01cdf52f$f7c7d8f0$e7578ad0$@samsung.com> (raw)
In-Reply-To: <1358185860-5425-1-git-send-email-dinggnu@gmail.com>

Cong Ding wrote:
> 
> the use of variable tmp is uninitialized, so we fix it.
> 
> Signed-off-by: Cong Ding <dinggnu@gmail.com>
> ---
>  arch/arm/mach-s3c24xx/common.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/arch/arm/mach-s3c24xx/common.c b/arch/arm/mach-
> s3c24xx/common.c
> index 0c9e9a7..6bcf87f 100644
> --- a/arch/arm/mach-s3c24xx/common.c
> +++ b/arch/arm/mach-s3c24xx/common.c
> @@ -197,7 +197,7 @@ static unsigned long s3c24xx_read_idcode_v4(void)
> 
>  static void s3c24xx_default_idle(void)
>  {
> -	unsigned long tmp;
> +	unsigned long tmp = 0;
>  	int i;
> 
>  	/* idle the system by using the idle mode which will wait for an
> --
> 1.7.9.5

Yes, correct. Applied.

Thanks.

- Kukjin


      reply	other threads:[~2013-01-18  3:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-14 17:51 [PATCH] arm: mach-s3c24xx/common.c: fix uninitialized variable warning Cong Ding
2013-01-18  3:57 ` Kukjin Kim [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='00bf01cdf52f$f7c7d8f0$e7578ad0$@samsung.com' \
    --to=kgene.kim@samsung.com \
    --cc=ben-linux@fluff.org \
    --cc=dinggnu@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    /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