| 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@redhat.com> |
| References: | <200406262245.i5QMjn65009470@ginger.cmf.nrl.navy.mil> <20040626225230.GA12698@taniwha.stupidest.org> <20040626162641.00786ed6.davem@redhat.com> |
| 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(©);
> > > skb_migrate(&atmvcc->sk->sk_receive_queue, ©);
> >
> > > - - while ((skb = skb_dequeue(©))) {
> > > + while ((skb = skb_dequeue(©)) != 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> |
|---|---|---|
| ||
| Previous by Date: | Re: Check connect address in NETLINK, David S. Miller |
|---|---|
| Next by Date: | Re: 2.6.6: IPv6 initialisation bug, YOSHIFUJI Hideaki / 吉藤英明 |
| Previous by Thread: | Re: CodingStyle: while ((a=b)), chas williams (contractor) |
| Next by Thread: | [2.6 patch] remove a superfluous #ifndef from net/ip.h, Adrian Bunk |
| Indexes: | [Date] [Thread] [Top] [All Lists] |