netdev
[Top] [All Lists]

Re: [PATCH][ATM]: fix sparse checker warnings

To: "David S. Miller" <davem@xxxxxxxxxx>
Subject: Re: [PATCH][ATM]: fix sparse checker warnings
From: Jeff Garzik <jgarzik@xxxxxxxxx>
Date: Mon, 28 Jun 2004 20:16:28 -0400
Cc: Chris Wedgwood <cw@xxxxxxxx>, chas@xxxxxxxxxxxxxxxx, shemminger@xxxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: <20040626162641.00786ed6.davem@xxxxxxxxxx>
References: <200406262245.i5QMjn65009470@xxxxxxxxxxxxxxxxxxxxxxx> <20040626225230.GA12698@xxxxxxxxxxxxxxxxxxxxx> <20040626162641.00786ed6.davem@xxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.4.1i
On Sat, Jun 26, 2004 at 04:26:41PM -0700, David S. Miller wrote:
> On Sat, 26 Jun 2004 15:52:30 -0700
> Chris Wedgwood <cw@xxxxxxxx> wrote:
> 
> > > +++ b/net/atm/br2684.c    2004-06-22 14:04:02 -07:00
> > > @@ -562,7 +562,7 @@
> > >   atmvcc->push = br2684_push;
> > >   skb_queue_head_init(&copy);
> > >   skb_migrate(&atmvcc->sk->sk_receive_queue, &copy);
> > 
> > > - -       while ((skb = skb_dequeue(&copy))) {
> > > + while ((skb = skb_dequeue(&copy)) != NULL) {
> > 
> > I know it's a matter of style, but I really hate the 'assignment in
> > conditional' warning sparse spews out, especially when many people,
> > myself included really do write while ((a = b)) --- the extra
> > parentheses as a compromise to keep gcc quiet.
> 
> I think warning for the ((a=b)) case is annoying but not annoying
> enough to fight against it :)

FWIW I take a tangential position on the issue:

it causes a fuckton of code churn

<Prev in Thread] Current Thread [Next in Thread>