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

Commit 99c703ac authored by Jiri Kosina's avatar Jiri Kosina
Browse files

HID: multitouch: fix types returned from mt_need_to_apply_feature()



Some exit paths from mt_need_to_apply_feature() returned int instead
of bool; fix that up.

Reported-by: default avatarkbuild test robot <lkp@intel.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 02946f4b
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -1206,15 +1206,15 @@ static bool mt_need_to_apply_feature(struct hid_device *hdev,


	case HID_DG_LATENCYMODE:
	case HID_DG_LATENCYMODE:
		field->value[index] = latency;
		field->value[index] = latency;
		return 1;
		return true;


	case HID_DG_SURFACESWITCH:
	case HID_DG_SURFACESWITCH:
		field->value[index] = surface_switch;
		field->value[index] = surface_switch;
		return 1;
		return true;


	case HID_DG_BUTTONSWITCH:
	case HID_DG_BUTTONSWITCH:
		field->value[index] = button_switch;
		field->value[index] = button_switch;
		return 1;
		return true;
	}
	}


	return false; /* no need to update the report */
	return false; /* no need to update the report */