Commit f1943977 authored by Namhyung Kim's avatar Namhyung Kim Committed by Steven Rostedt

tracing: Get rid of unneeded key calculation in ftrace_hash_move()

It's not used anywhere in the function.

Link: http://lkml.kernel.org/r/1365553093-10180-1-git-send-email-namhyung@kernel.orgSigned-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent 9f50afcc
...@@ -1320,7 +1320,6 @@ ftrace_hash_move(struct ftrace_ops *ops, int enable, ...@@ -1320,7 +1320,6 @@ ftrace_hash_move(struct ftrace_ops *ops, int enable,
struct hlist_head *hhd; struct hlist_head *hhd;
struct ftrace_hash *old_hash; struct ftrace_hash *old_hash;
struct ftrace_hash *new_hash; struct ftrace_hash *new_hash;
unsigned long key;
int size = src->count; int size = src->count;
int bits = 0; int bits = 0;
int ret; int ret;
...@@ -1363,10 +1362,6 @@ ftrace_hash_move(struct ftrace_ops *ops, int enable, ...@@ -1363,10 +1362,6 @@ ftrace_hash_move(struct ftrace_ops *ops, int enable,
for (i = 0; i < size; i++) { for (i = 0; i < size; i++) {
hhd = &src->buckets[i]; hhd = &src->buckets[i];
hlist_for_each_entry_safe(entry, tp, tn, hhd, hlist) { hlist_for_each_entry_safe(entry, tp, tn, hhd, hlist) {
if (bits > 0)
key = hash_long(entry->ip, bits);
else
key = 0;
remove_hash_entry(src, entry); remove_hash_entry(src, entry);
__add_hash_entry(new_hash, entry); __add_hash_entry(new_hash, entry);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment