[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20091208192509.GD1653@Krystal>
Date: Tue, 8 Dec 2009 14:25:09 -0500
From: Mathieu Desnoyers <mathieu.desnoyers@...ymtl.ca>
To: Stephen Hemminger <shemminger@...ux-foundation.org>
Cc: "David S. Miller" <davem@...emloft.net>,
Robert Olsson <robert.olsson@....uu.se>,
Jens Laas <jens.laas@...a.slu.se>,
Hans Liss <hans.liss@....uu.se>,
"Paul E. McKenney" <paulmck@...ibm.com>,
Patrick McHardy <kaber@...sh.net>, linux-kernel@...r.kernel.org
Subject: [PATCH] fib-trie: code cleanup (v2)
* Stephen Hemminger (shemminger@...ux-foundation.org) wrote:
> On Tue, 8 Dec 2009 13:48:39 -0500
> Mathieu Desnoyers <mathieu.desnoyers@...ymtl.ca> wrote:
>
> > /* use cache location of last found key */
> > - if (iter->pos > 0 && pos >= iter->pos && (l = fib_find_node(t, iter->key)))
> > - pos -= iter->pos;
> > + if (iter->pos > 0 && pos >= iter->pos)
> > + l = fib_find_node(t, iter->key);
> > + if (l)
> > + pos -= iter->pos;
> > else {
>
> Missing bracket's here change the semantics.
Ouch, yes. thanks.
--
Mathieu Desnoyers
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists