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

Commit 8c8d8f9b authored by Shantanu Jain's avatar Shantanu Jain
Browse files

input: touchscreen: fix issue raised by static analyzer in maxim_sti driver



Fix issue raised by static analyzer in maxim_sti touch driver.
Initialize the "id" variable properly in driver function, which is
used to specify the touch event id.

CRs-fixed: 995978
Change-Id: Ib8e730980d07cb28dc1ac6124476620d79bd374f
Signed-off-by: default avatarShantanu Jain <shjain@codeaurora.org>
parent 0940fb6a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1432,10 +1432,10 @@ nl_process_driver_msg(struct dev_data *dd, u16 msg_id, void *msg)
			}
		} else {
			for (i = 0; i < input_msg->events; i++) {
				id = input_msg->event[i].id;
				switch (input_msg->event[i].tool_type) {
				case DR_INPUT_FINGER:
					inp = 0;
					id = input_msg->event[i].id;
					if (pdata->mt_type_b_enabled) {
						input_mt_slot(
							dd->input_dev[inp], id);