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:
Venkata Prahlad Valluru 2018-03-13 18:54:30 +05:30
parent 545199223e
commit 63d1082c62

View file

@ -472,7 +472,7 @@ static int synaptics_i2c_change_pipe_owner(
struct synaptics_rmi4_data *rmi4_data, enum subsystem subsystem)
{
/*scm call descriptor */
struct scm_desc desc;
struct scm_desc desc = {0};
struct i2c_client *i2c = to_i2c_client(rmi4_data->pdev->dev.parent);
int ret = 0;