[PATCH] input:kxtj9:check the return value of kxtj9_enable()

From: Wanlong Gao <hidden>
Date: 2011-07-20 06:49:28
Subsystem: input (keyboard, mouse, joystick, touchscreen) drivers, the rest · Maintainers: Dmitry Torokhov, Linus Torvalds

If don't check the return value of kxtj9_enable(), the kxtj9_resume()
will always return 0 instead.

Signed-off-by: Wanlong Gao <redacted>
---
 drivers/input/misc/kxtj9.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/input/misc/kxtj9.c b/drivers/input/misc/kxtj9.c
index a416f7f..b835c29 100644
--- a/drivers/input/misc/kxtj9.c
+++ b/drivers/input/misc/kxtj9.c
@@ -627,7 +627,7 @@ static int kxtj9_resume(struct device *dev)
 	mutex_lock(&input_dev->mutex);
 
 	if (input_dev->users)
-		kxtj9_enable(tj9);
+		retval = kxtj9_enable(tj9);
 
 	mutex_unlock(&input_dev->mutex);
 	return retval;
-- 
1.7.6
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help