Files
linux-legacy/drivers
Wending Weng fd20bbd7c6 Bluetooth: Fix false errors from bcsp_pkt_cull function
The error message "Removed only %u out of %u pkts" is printed when multiple
to be acked packets are queued.

    if (i++ >= pkts_to_be_removed)
            break;

This will break out of the loop and increase the counter i when
i==pkts_to_be_removed and the loop ends up with i=pkts_to_be_removed+1.

The following line

    if (i != pkts_to_be_removed) {
            BT_ERR("Removed only %u out of %u pkts", i, pkts_to_be_removed);
    }

will then display the false message.

The counter i must not increase on the same statement.

Signed-off-by: Wending Weng <wweng@rheinmetall.ca>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
2010-08-10 11:46:47 -05:00
..
…
2009-08-15 12:58:45 +09:00
…
…
2009-06-16 19:50:13 -07:00
2009-06-17 09:35:24 -07:00
2009-07-12 12:22:34 -07:00
2009-12-18 13:43:50 -08:00
…
…
…
…
2009-12-18 13:43:30 -08:00
…
2009-07-12 12:22:34 -07:00
…
…
2009-06-18 13:04:04 -07:00