HID: zeroing of bytes in output fields is bogus
[safe/jmp/linux-2.6] / drivers / hid / hid-core.c
index e5894a7..d28d76d 100644 (file)
@@ -875,10 +875,6 @@ static void hid_output_field(struct hid_field *field, __u8 *data)
        unsigned size = field->report_size;
        unsigned n;
 
-       /* make sure the unused bits in the last byte are zeros */
-       if (count > 0 && size > 0)
-               data[(offset+count*size-1)/8] = 0;
-
        for (n = 0; n < count; n++) {
                if (field->logical_minimum < 0) /* signed values */
                        implement(data, offset + n * size, size, s32ton(field->value[n], size));