Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4ff082fb authored by Venkata Prahlad Valluru's avatar Venkata Prahlad Valluru
Browse files

input: touchscreen: Fix uninitialized variable usage in Atmel driver



Initialize variables that are passed by reference, so that
they can be used safely afterwards, irrespective of the
called function actions.

Change-Id: Ib7fa26b0682c719cabdb9cb94f206a93e3eaaf63
Signed-off-by: default avatarVenkata Prahlad Valluru <vvalluru@codeaurora.org>
parent 225f4088
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1627,7 +1627,8 @@ static int mxt_update_t100_resolution(struct mxt_data *data)
	u16 range_y = 0;
	u16 temp;
	u8 cfg = 0;
	u8 tchaux, aux;
	u8 tchaux = 0;
	u8 aux;
	bool update = false;

	object = mxt_get_object(data, MXT_TOUCH_MULTITOUCHSCREEN_T100);