]> git.baikalelectronics.ru Git - kernel.git/commit
fib: use __fls() on non null argument
authorEric Dumazet <edumazet@google.com>
Tue, 7 Aug 2012 10:45:47 +0000 (10:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Aug 2012 23:24:55 +0000 (16:24 -0700)
commit30143992adf1a7cbe785a253e11671eb9c5dce52
tree7cffe187b2ff7732f6002d7fc373f87cb93837b9
parent9adc31e39f5b2f9ac7930e271210f5783998cb88
fib: use __fls() on non null argument

__fls(x) is a bit faster than fls(x), granted we know x is non null.

As Ben Hutchings pointed out, fls(x) = __fls(x) + 1

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/fib_trie.c