[NETFILTER]: nf_conntrack_expect: avoid useless list walking
authorPatrick McHardy <kaber@trash.net>
Sun, 8 Jul 2007 05:32:03 +0000 (22:32 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 11 Jul 2007 05:17:56 +0000 (22:17 -0700)
commit4e1d4e6c5a448bd114e0cef6311c974cb7c7385e
treeaa785c5d14b7796de154872a754ae9e25df6650b
parentd4156e8cd93f5772483928aaf4960120caebd789
[NETFILTER]: nf_conntrack_expect: avoid useless list walking

Don't walk the list when unexpecting an expectation, we already
have a reference and the timer check is enough to guarantee
that it still is on the list.

This comment suggests that it was copied there by mistake from
expectation eviction:

/* choose the oldest expectation to evict */

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/nf_conntrack_expect.c