| To: | "chas williams (contractor)" <chas@xxxxxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH][ATM]: fix sparse checker warnings |
| From: | Chris Wedgwood <cw@xxxxxxxx> |
| Date: | Sat, 26 Jun 2004 15:52:30 -0700 |
| Cc: | davem@xxxxxxxxxx, Stephen Hemminger <shemminger@xxxxxxxx>, netdev@xxxxxxxxxxx |
| In-reply-to: | <200406262245.i5QMjn65009470@ginger.cmf.nrl.navy.mil> |
| References: | <200406262245.i5QMjn65009470@ginger.cmf.nrl.navy.mil> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
On Sat, Jun 26, 2004 at 06:45:50PM -0400, chas williams (contractor) wrote:
> diff -Nru a/net/atm/br2684.c b/net/atm/br2684.c
> - --- a/net/atm/br2684.c 2004-06-22 14:04:02 -07:00
forwarding mangled the patch
> +++ 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.
--cw
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH][ATM]: fix sparse checker warnings, chas williams (contractor) |
|---|---|
| Next by Date: | Re: [PATCH][ATM]: fix sparse checker warnings, chas williams (contractor) |
| Previous by Thread: | [PATCH][ATM]: fix sparse checker warnings, chas williams (contractor) |
| Next by Thread: | Re: [PATCH][ATM]: fix sparse checker warnings, chas williams (contractor) |
| Indexes: | [Date] [Thread] [Top] [All Lists] |