]> err.no Git - linux-2.6/commitdiff
sony-laptop: fix uninitialised variable
authorAndrew Morton <akpm@linux-foundation.org>
Tue, 6 Mar 2007 10:29:42 +0000 (02:29 -0800)
committerLen Brown <len.brown@intel.com>
Wed, 7 Mar 2007 08:05:13 +0000 (03:05 -0500)
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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/misc/sony-laptop.c

index 2ebe240dd53761f236007f0dd17fc46a09db26ad..ac708bc2f9f3ce3bf158c74cf376072d7ac8726b 100644 (file)
@@ -453,7 +453,7 @@ static int sony_acpi_resume(struct acpi_device *device)
 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;