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:
parent
5142c18bae
commit
b5393028e1
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue