Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8607c673 authored by Andrew Morton's avatar Andrew Morton Committed by Len Brown
Browse files

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 <malattia@linux.it>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 08e15e81
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -453,7 +453,7 @@ static int sony_acpi_resume(struct acpi_device *device)
static int sony_acpi_add(struct acpi_device *device)
static int sony_acpi_add(struct acpi_device *device)
{
{
	acpi_status status;
	acpi_status status;
	int result;
	int result = 0;
	acpi_handle handle;
	acpi_handle handle;


	sony_acpi_acpi_device = device;
	sony_acpi_acpi_device = device;