All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Sainty <david.sainty@dtsp.co.nz>
To: Marcel Holtmann <marcel@holtmann.org>
Cc: Roel Kluin <roel.kluin@gmail.com>,
	linux-bluetooth@vger.kernel.org,
	Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [PATCH] Bluetooth: i reaches pkts_to_be_removed + 1
Date: Thu, 26 Feb 2009 12:08:39 +1300	[thread overview]
Message-ID: <49A5CF77.6020306@dtsp.co.nz> (raw)
In-Reply-To: <1235601640.27004.5.camel@localhost.localdomain>

Marcel Holtmann wrote:
> Hi Roel,
>
>   
>> i reaches pkts_to_be_removed + 1
>>
>> Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
>> ---
>> diff --git a/drivers/bluetooth/hci_bcsp.c b/drivers/bluetooth/hci_bcsp.c
>> index 894b2cb..177f34b 100644
>> --- a/drivers/bluetooth/hci_bcsp.c
>> +++ b/drivers/bluetooth/hci_bcsp.c
>> @@ -385,7 +385,7 @@ static void bcsp_pkt_cull(struct bcsp_struct *bcsp)
>>  
>>  	spin_unlock_irqrestore(&bcsp->unack.lock, flags);
>>  
>> -	if (i != pkts_to_be_removed)
>> +	if (i <= pkts_to_be_removed)
>>  		BT_ERR("Removed only %u out of %u pkts", i, pkts_to_be_removed);
>>  }
>>     
>
> patch looks good, but can you please fill in the commit message with a
> little bit more details and background.
>   

Isn't there something wrong with this?  The patched code looks like it 
will output apparently nonsensical messages like "Removed only 10 out of 
10 pkts".

  parent reply	other threads:[~2009-02-25 23:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-25 21:58 [PATCH] Bluetooth: i reaches pkts_to_be_removed + 1 Roel Kluin
2009-02-25 22:40 ` Marcel Holtmann
2009-02-25 22:53   ` Roel Kluin
2009-02-25 23:08   ` David Sainty [this message]
2009-02-25 23:43     ` Marcel Holtmann
2009-03-02 12:37       ` Roel Kluin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49A5CF77.6020306@dtsp.co.nz \
    --to=david.sainty@dtsp.co.nz \
    --cc=akpm@linux-foundation.org \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=marcel@holtmann.org \
    --cc=roel.kluin@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.