Re: [PATCH] fib-trie: code cleanup

Stephen Hemminger
2009-12-08T19:09:45Z

On Tue, 8 Dec 2009 13:48:39 -0500
Mathieu Desnoyers <mathieu.desnoyers@polymtl.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.