public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] thinkpad-acpi: should error return be nagative?
@ 2009-11-20 18:48 Roel Kluin
  2009-11-21  4:57 ` Henrique de Moraes Holschuh
  2009-11-25  5:38 ` Len Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Roel Kluin @ 2009-11-20 18:48 UTC (permalink / raw)
  To: Henrique de Moraes Holschuh, ibm-acpi-devel, Andrew Morton, LKML

The returned error should be negative

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
 drivers/platform/x86/thinkpad_acpi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Is this maybe required?

diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
index d93108d..03c0a56 100644
--- a/drivers/platform/x86/thinkpad_acpi.c
+++ b/drivers/platform/x86/thinkpad_acpi.c
@@ -6313,7 +6313,7 @@ static int brightness_write(char *buf)
 	 * Doing it this way makes the syscall restartable in case of EINTR
 	 */
 	rc = brightness_set(level);
-	return (rc == -EINTR)? ERESTARTSYS : rc;
+	return (rc == -EINTR)? -ERESTARTSYS : rc;
 }
 
 static struct ibm_struct brightness_driver_data = {

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-11-25  5:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-20 18:48 [PATCH] thinkpad-acpi: should error return be nagative? Roel Kluin
2009-11-21  4:57 ` Henrique de Moraes Holschuh
2009-11-25  5:38 ` Len Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox