Commit:     8607c673bdd593d4ce439a36412a213a8efb282b
Parent:     08e15e81a40e3241ce93b4a43886f3abda184aa6
Author:     Andrew Morton <[EMAIL PROTECTED]>
AuthorDate: Tue Mar 6 02:29:42 2007 -0800
Committer:  Len Brown <[EMAIL PROTECTED]>
CommitDate: Wed Mar 7 03:05:13 2007 -0500

    sony-laptop: fix uninitialised variable
    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]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Len Brown <[EMAIL PROTECTED]>
 drivers/misc/sony-laptop.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/misc/sony-laptop.c b/drivers/misc/sony-laptop.c
index 2ebe240..ac708bc 100644
--- a/drivers/misc/sony-laptop.c
+++ b/drivers/misc/sony-laptop.c
@@ -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;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to