All of lore.kernel.org
 help / color / mirror / Atom feed
From: Len Brown <lenb@kernel.org>
To: akpm@linux-foundation.org
Cc: linux-acpi@vger.kernel.org, malattia@linux.it
Subject: Re: [patch 4/6] sony-laptop fix uninitialised variable
Date: Wed, 7 Mar 2007 03:06:06 -0500	[thread overview]
Message-ID: <200703070306.07149.lenb@kernel.org> (raw)
In-Reply-To: <200703061029.l26ATgUA019125@shell0.pdx.osdl.net>

Applied.

thanks,
-Len

On Tuesday 06 March 2007 05:29, akpm@linux-foundation.org wrote:
> From: Andrew Morton <akpm@linux-foundation.org>
> 
> drivers/misc/sony-laptop.c: In function 'sony_acpi_add':
> drivers/misc/sony-laptop.c:456: warning: 'result' may be used uninitialized in this function
> 
> The compiler seems to actually be telling the truth this time.
> 
> Cc: Mattia Dongili <malattia@linux.it>
> Cc: Len Brown <lenb@kernel.org>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> ---
> 
>  drivers/misc/sony-laptop.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff -puN drivers/misc/sony-laptop.c~sony-laptop-fix-uninitialised-variable drivers/misc/sony-laptop.c
> --- a/drivers/misc/sony-laptop.c~sony-laptop-fix-uninitialised-variable
> +++ a/drivers/misc/sony-laptop.c
> @@ -453,7 +453,7 @@ static int sony_acpi_resume(struct acpi_
>  static int sony_acpi_add(struct acpi_device *device)
>  {
>  	acpi_status status;
> -	int result;
> +	int result = 0;
>  	acpi_handle handle;
>  
>  	sony_acpi_acpi_device = device;
> _
> 

      reply	other threads:[~2007-03-07  8:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-06 10:29 [patch 4/6] sony-laptop fix uninitialised variable akpm
2007-03-07  8:06 ` Len Brown [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=200703070306.07149.lenb@kernel.org \
    --to=lenb@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=malattia@linux.it \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.