mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
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: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
parent
08e15e81a4
commit
8607c673bd
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue