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

Commit bed57e9d authored by Himanshu Aggarwal's avatar Himanshu Aggarwal
Browse files

input: misc: hbtp-input: fix uninitialized usage of a variable



It is possible that 'error' variable is used uninitialized. This
change avoids usage of uninitialized usage of the variable.

CRs-fixed: 973871
Change-Id: Ibd6baf84473f2fe0e54bd04b0bbf9387307f97c1
Signed-off-by: default avatarHimanshu Aggarwal <haggarwa@codeaurora.org>
parent ac263d37
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -313,7 +313,7 @@ reg_off:
static long hbtp_input_ioctl_handler(struct file *file, unsigned int cmd,
				 unsigned long arg, void __user *p)
{
	int error;
	int error = 0;
	struct hbtp_input_mt mt_data;
	struct hbtp_input_absinfo absinfo[ABS_MT_LAST - ABS_MT_FIRST + 1];
	struct hbtp_input_key key_data;