sony-laptop fix uninitialised variable
Subsystems (2)
PATCH 4/6 sony-laptop fix uninitialised variable
From: Andrew Morton <[email protected]>
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 <[email protected]>
Cc Len Brown <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/misc/sony-laptop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/misc/sony-laptop.c renamed from drivers/misc/sony-laptop.c~sony-laptop-fix-uninitialised-variable +1 -1
@@ -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;
_
Applied.
thanks,
-Len
Quoted 29 lines · On Tuesday 06 March 2007 05:29, [email protected] wrote:
From: Andrew Morton <[email protected]>
drivers/misc/sony-laptop.c: In function 'sony_acpi_add':drivers/misc/sony-laptop.c:456: warning: 'result' may be used uninitialized in this functionThe compiler seems to actually be telling the truth this time.
Cc Mattia Dongili <[email protected]>Cc Len Brown <[email protected]>Signed-off-by Andrew Morton <[email protected]>---
drivers/misc/sony-laptop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)diff -puN
drivers/misc/sony-laptop.c~sony-laptop-fix-uninitialised-variabledrivers/misc/sony-laptop.cdrivers/misc/sony-laptop.c renamed from drivers/misc/sony-laptop.c~sony-laptop-fix-uninitialised-variable +1
-1@@ -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;_