diff options
author | Namhyung Kim <namhyung.kim@lge.com> | 2013-04-09 20:18:11 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2013-04-12 23:02:31 -0400 |
commit | f1943977e6648c1d42a78eda4ba4429a2bc0b786 (patch) | |
tree | ce8d64e065be0b1305b4d296c5d147650d2f11c7 | |
parent | 9f50afccfdc15d95d7331acddcb0f7703df089ae (diff) |
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.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r-- | kernel/trace/ftrace.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 9e3198782507..3b84fc100788 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c | |||
@@ -1320,7 +1320,6 @@ ftrace_hash_move(struct ftrace_ops *ops, int enable, | |||
1320 | struct hlist_head *hhd; | 1320 | struct hlist_head *hhd; |
1321 | struct ftrace_hash *old_hash; | 1321 | struct ftrace_hash *old_hash; |
1322 | struct ftrace_hash *new_hash; | 1322 | struct ftrace_hash *new_hash; |
1323 | unsigned long key; | ||
1324 | int size = src->count; | 1323 | int size = src->count; |
1325 | int bits = 0; | 1324 | int bits = 0; |
1326 | int ret; | 1325 | int ret; |
@@ -1363,10 +1362,6 @@ ftrace_hash_move(struct ftrace_ops *ops, int enable, | |||
1363 | for (i = 0; i < size; i++) { | 1362 | for (i = 0; i < size; i++) { |
1364 | hhd = &src->buckets[i]; | 1363 | hhd = &src->buckets[i]; |
1365 | hlist_for_each_entry_safe(entry, tp, tn, hhd, hlist) { | 1364 | hlist_for_each_entry_safe(entry, tp, tn, hhd, hlist) { |
1366 | if (bits > 0) | ||
1367 | key = hash_long(entry->ip, bits); | ||
1368 | else | ||
1369 | key = 0; | ||
1370 | remove_hash_entry(src, entry); | 1365 | remove_hash_entry(src, entry); |
1371 | __add_hash_entry(new_hash, entry); | 1366 | __add_hash_entry(new_hash, entry); |
1372 | } | 1367 | } |