Browse Source

touch: fix KW issue

KW reported 'val' is used uninitialized, fix it.

Change-Id: I8a563737bb365e8f88716c8aeab64f05c11fa1ab
Signed-off-by: Yu Wu <[email protected]>
Yu Wu 1 year ago
parent
commit
064ab41b8c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      atmel_mxt/atmel_mxt_ts.c

+ 1 - 1
atmel_mxt/atmel_mxt_ts.c

@@ -1377,7 +1377,7 @@ static int mxt_check_retrigen(struct mxt_data *data)
 {
 	struct i2c_client *client = data->client;
 	int error;
-	int val;
+	int val = 0;
 	struct irq_data *irqd;
 
 	data->use_retrigen_workaround = false;