input: touchscreen: synaptics_dsx: Fix uninitialized variable usage
Initialize variables that are passed by reference, so that they can be used safely afterwards, irrespective of the called function actions. Change-Id: Ib95f3aa3077d6ef7aaaabcfc6c882790b6406793 Signed-off-by: Venkata Prahlad Valluru <vvalluru@codeaurora.org>
This commit is contained in:
parent
545199223e
commit
63d1082c62
1 changed files with 1 additions and 1 deletions
|
@ -472,7 +472,7 @@ static int synaptics_i2c_change_pipe_owner(
|
||||||
struct synaptics_rmi4_data *rmi4_data, enum subsystem subsystem)
|
struct synaptics_rmi4_data *rmi4_data, enum subsystem subsystem)
|
||||||
{
|
{
|
||||||
/*scm call descriptor */
|
/*scm call descriptor */
|
||||||
struct scm_desc desc;
|
struct scm_desc desc = {0};
|
||||||
struct i2c_client *i2c = to_i2c_client(rmi4_data->pdev->dev.parent);
|
struct i2c_client *i2c = to_i2c_client(rmi4_data->pdev->dev.parent);
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue