Browse Source

Input: sx8654 - signedness bug in sx8654_irq()

"irqsrc" needs to be signed for the error handling to work.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Dan Carpenter 10 years ago
parent
commit
b6310affbe
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/input/touchscreen/sx8654.c

+ 1 - 1
drivers/input/touchscreen/sx8654.c

@@ -79,7 +79,7 @@ struct sx8654 {
 static irqreturn_t sx8654_irq(int irq, void *handle)
 {
 	struct sx8654 *sx8654 = handle;
-	u8 irqsrc;
+	int irqsrc;
 	u8 data[4];
 	unsigned int x, y;
 	int retval;