asus-laptop: fix incorrect return value for write_acpi_int_ret if handle is NULL
authorAxel Lin <axel.lin@gmail.com>
Tue, 20 Jul 2010 22:19:47 +0000 (15:19 -0700)
committerMatthew Garrett <mjg@redhat.com>
Tue, 3 Aug 2010 13:49:01 +0000 (09:49 -0400)
commit9fb866f317def195bb794120e13d1d73c2a94bb2
treebc6f8fef9ddcb76db8e3db97f108c6dc5aa5d743
parente38f052ba5fd4d3d8eb547e7d0c6bc1143a2babd
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 <axel.lin@gmail.com>
Cc: Matthew Garrett <mjg@redhat.com>
Cc: Corentin Chary <corentincj@iksaif.net>
Cc: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/asus-laptop.c