Hi Gustavo, On Thu, Feb 17, 2011 at 2:48 PM, Gustavo F. Padovan <padovan@xxxxxxxxxxxxxx> wrote: >> + for (i = 1; i < num_reports; i++) { >> + ev = (void *) (ev->data + ev->length + 1); > > You are not using i anywhere here. It's used to iterate the for() itself, but it could be changed to e.g.: while (--num_reports) { ... } It is pre-incremented to skip the first report as it was already processed outside the loop. Regards, -- Anderson Lizardo Instituto Nokia de Tecnologia - INdT Manaus - Brazil -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html