| To: | "David S. Miller" <davem@xxxxxxxxxx> |
|---|---|
| Subject: | CodingStyle: while ((a=b)) |
| From: | Chris Wedgwood <cw@xxxxxxxx> |
| Date: | Sat, 26 Jun 2004 16:42:21 -0700 |
| Cc: | chas@xxxxxxxxxxxxxxxx, shemminger@xxxxxxxx, netdev@xxxxxxxxxxx, Linus Torvalds <torvalds@xxxxxxxx> |
| 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 |
On Sat, Jun 26, 2004 at 04:26:41PM -0700, David S. Miller wrote:
> I think warning for the ((a=b)) case is annoying but not annoying
> enough to fight against it :)
Whatever the case, even if I don't like it I would rather see it
consistent.
Maybe Linus can comment as to whether or not we officially
(Documentation/CodingStyle update) want to change things like:
while ((a=b)) to while ((a=b) != 0)
and similar throughout the code?
--cw
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH][ATM]: fix sparse checker warnings, David S. Miller |
|---|---|
| Next by Date: | [2.6 patch] remove a superfluous #ifndef from net/ip.h, Adrian Bunk |
| Previous by Thread: | Re: [PATCH][ATM]: fix sparse checker warnings, David S. Miller |
| Next by Thread: | Re: CodingStyle: while ((a=b)), chas williams (contractor) |
| Indexes: | [Date] [Thread] [Top] [All Lists] |