From: Axel Lin Date: Tue, 20 Jul 2010 22:19:47 +0000 (-0700) Subject: asus-laptop: fix incorrect return value for write_acpi_int_ret if handle is NULL X-Git-Tag: v2.6.36-rc1~579^2~41 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fb866f317def195bb794120e13d1d73c2a94bb2;p=pandora-kernel.git asus-laptop: fix incorrect return value for write_acpi_int_ret if handle is NULL According to the comments of write_acpi_int_ret(), write_acpi_int_ret() should return 0 if write is successful, -1 else. Thus if handle is NULL, the write does not happen, it should return -1. Signed-off-by: Axel Lin Cc: Matthew Garrett Cc: Corentin Chary Cc: Alan Jenkins Signed-off-by: Andrew Morton Signed-off-by: Matthew Garrett --- Reading git-diff-tree failed