| To: | Chris Wedgwood <cw@xxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH][ATM]: fix sparse checker warnings |
| From: | "David S. Miller" <davem@xxxxxxxxxx> |
| Date: | Sat, 26 Jun 2004 16:26:41 -0700 |
| Cc: | chas@xxxxxxxxxxxxxxxx, shemminger@xxxxxxxx, netdev@xxxxxxxxxxx |
| In-reply-to: | <20040626225230.GA12698@xxxxxxxxxxxxxxxxxxxxx> |
| References: | <200406262245.i5QMjn65009470@xxxxxxxxxxxxxxxxxxxxxxx> <20040626225230.GA12698@xxxxxxxxxxxxxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
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 :)
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH][ATM]: fix sparse checker warnings, chas williams (contractor) |
|---|---|
| Next by Date: | Re: [PATCH][ATM]: fix sparse checker warnings, David S. Miller |
| Previous by Thread: | Re: [PATCH][ATM]: fix sparse checker warnings, David S. Miller |
| Next by Thread: | CodingStyle: while ((a=b)), Chris Wedgwood |
| Indexes: | [Date] [Thread] [Top] [All Lists] |