diff mbox

[16/26] asus-laptop: fix incorrect return value for write_acpi_int_ret if handle is NULL

Message ID 201007202219.o6KMJlaI021057@imap1.linux-foundation.org (mailing list archive)
State New, archived
Headers show

Commit Message

Andrew Morton July 20, 2010, 10:19 p.m. UTC
None
diff mbox

Patch

diff -puN drivers/platform/x86/asus-laptop.c~asus-laptop-fix-incorrect-return-value-for-write_acpi_int_ret-if-handle-is-null drivers/platform/x86/asus-laptop.c
--- a/drivers/platform/x86/asus-laptop.c~asus-laptop-fix-incorrect-return-value-for-write_acpi_int_ret-if-handle-is-null
+++ a/drivers/platform/x86/asus-laptop.c
@@ -297,7 +297,7 @@  static int write_acpi_int_ret(acpi_handl
 	acpi_status status;
 
 	if (!handle)
-		return 0;
+		return -1;
 
 	params.count = 1;
 	params.pointer = &in_obj;