# Re: \[PATCH\] HID: multitouch: remove useless last\_field\_index field

- From: Jiri Kosina \<hidden\>
- Date: 2013-03-07 14:20:36 
- List: linux-input
- Page: https://ratatoskr.run/linux-input/2013/03/4012916
- Thread: https://ratatoskr.run/linux-input/2013/02/4008349/t.md

```text
On Wed, 27 Feb 2013, Benjamin Tissoires wrote:

> The aim of last_field_index was to detect the end of the report.
> With the introduction of .report(), it is not required anymore to
> detect it on the fly as we can put it in the right place during the
> .report().
> 
> The resulting code path is simpler to read because the terminating
> condition is not evaluated after each field.
> 
> Signed-off-by: Benjamin Tissoires <redacted>

Applied, thanks.

-- 
Jiri Kosina
SUSE Labs
```
