summaryrefslogtreecommitdiffstats
path: root/lib/rhashtable.c
diff options
context:
space:
mode:
authorHerbert Xu2015-03-23 14:50:20 +0100
committerDavid S. Miller2015-03-24 03:07:51 +0100
commitde91b25c8011089f5dd99b9d24743db1f550ca4b (patch)
treeee038e699a64ef4ee361673f7ca22619ca3b0491 /lib/rhashtable.c
parentrhashtable: Add barrier to ensure we see new tables in walker (diff)
downloadkernel-qcow2-linux-de91b25c8011089f5dd99b9d24743db1f550ca4b.tar.gz
kernel-qcow2-linux-de91b25c8011089f5dd99b9d24743db1f550ca4b.tar.xz
kernel-qcow2-linux-de91b25c8011089f5dd99b9d24743db1f550ca4b.zip
rhashtable: Eliminate unnecessary branch in rht_key_hashfn
When rht_key_hashfn is called from rhashtable itself and params is equal to ht->p, there is no point in checking params.key_len and falling back to ht->p.key_len. For some reason gcc couldn't figure out that params is the same as ht->p. So let's help it by only checking params.key_len when it's a constant. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Acked-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/rhashtable.c')
0 files changed, 0 insertions, 0 deletions