Skip to content

Commit

Permalink
sony-laptop: fix uninitialised variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrew Morton authored and Len Brown committed Mar 7, 2007
1 parent 08e15e8 commit 8607c67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/misc/sony-laptop.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8607c67

Please sign in to comment.