Hi Wending, please don't top post. Use proper inline quoting. > If I keep "if (i++ >= pkts_to_be_removed)", the loop will end up with > i=2 if pkts_to_be_removed==1 and the second test skb_queue_walk_safe is true, > > it will cause error message later on: > > if (i != pkts_to_be_removed) { > BT_ERR("Removed only %u out of %u pkts", i, pkts_to_be_removed); > } > > I think we should add another line for i++. Not following? I am saying replace >= with >. Would that work too? Otherwise please send a patch with a more detailed commit message. Regards Marcel -- 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