]> Pileus Git - ~andy/linux/commit
HID: multitouch: remove useless last_field_index field
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Wed, 27 Feb 2013 15:23:15 +0000 (16:23 +0100)
committerJiri Kosina <jkosina@suse.cz>
Thu, 7 Mar 2013 14:20:25 +0000 (15:20 +0100)
commit5b62efd8250d6a751c31d1972e96bfccd19c4679
treefa38a2e5f651602dddb0014677d92048f64e0d77
parent48a732dfaa77a4dfec803aa8f248373998704f76
HID: multitouch: remove useless last_field_index field

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 <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-multitouch.c