* [patch 4/6] sony-laptop fix uninitialised variable
@ 2007-03-06 10:29 akpm
2007-03-07 8:06 ` Len Brown
0 siblings, 1 reply; 2+ messages in thread
From: akpm @ 2007-03-06 10:29 UTC (permalink / raw)
To: lenb; +Cc: linux-acpi, akpm, malattia
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;
_
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch 4/6] sony-laptop fix uninitialised variable
2007-03-06 10:29 [patch 4/6] sony-laptop fix uninitialised variable akpm
@ 2007-03-07 8:06 ` Len Brown
0 siblings, 0 replies; 2+ messages in thread
From: Len Brown @ 2007-03-07 8:06 UTC (permalink / raw)
To: akpm; +Cc: linux-acpi, malattia
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;
> _
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-03-07 8:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-06 10:29 [patch 4/6] sony-laptop fix uninitialised variable akpm
2007-03-07 8:06 ` Len Brown
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).