input: ft5x06_ts: fix uninitialized references in ft5x06_ts

Fix uninitialized references in ft5x06_ts driver, found
during static analysis of the code.

Change-Id: I15e248dd9bb3673c21d31acea69a1e892eff51b0
Signed-off-by: Himanshu Aggarwal <haggarwa@codeaurora.org>
This commit is contained in:
Himanshu Aggarwal 2016-12-06 11:19:26 +05:30 committed by Gerrit - the friendly Code Review server
parent 5142c18bae
commit b5393028e1

View file

@ -1936,7 +1936,7 @@ static int ft5x06_debug_data_get(void *_data, u64 *val)
{
struct ft5x06_ts_data *data = _data;
int rc;
u8 reg;
u8 reg = 0;
mutex_lock(&data->input_dev->mutex);
@ -2255,7 +2255,7 @@ static int ft5x06_ts_probe(struct i2c_client *client,
struct ft5x06_ts_data *data;
struct input_dev *input_dev;
struct dentry *temp;
u8 reg_value;
u8 reg_value = 0;
u8 reg_addr;
int err, len, retval, attr_count;