aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/hid/hid-core.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
index e5894a75a6f3..d28d76d22043 100644
--- a/drivers/hid/hid-core.c
+++ b/drivers/hid/hid-core.c
@@ -875,10 +875,6 @@ static void hid_output_field(struct hid_field *field, __u8 *data)
875 unsigned size = field->report_size; 875 unsigned size = field->report_size;
876 unsigned n; 876 unsigned n;
877 877
878 /* make sure the unused bits in the last byte are zeros */
879 if (count > 0 && size > 0)
880 data[(offset+count*size-1)/8] = 0;
881
882 for (n = 0; n < count; n++) { 878 for (n = 0; n < count; n++) {
883 if (field->logical_minimum < 0) /* signed values */ 879 if (field->logical_minimum < 0) /* signed values */
884 implement(data, offset + n * size, size, s32ton(field->value[n], size)); 880 implement(data, offset + n * size, size, s32ton(field->value[n], size));