kcsan: Remove redundant call of kallsyms_lookup_name()
There is no need to repeatedly call kallsyms_lookup_name, we can reuse the return value of this function. Signed-off-by: Ran Xiaokai <ran.xiaokai@zte.com.cn> Signed-off-by: Marco Elver <elver@google.com>
This commit is contained in:
parent
59458fa4dd
commit
b86f7c9fad
1 changed files with 1 additions and 2 deletions
|
@ -179,8 +179,7 @@ retry_alloc:
|
|||
}
|
||||
|
||||
/* Note: deduplicating should be done in userspace. */
|
||||
report_filterlist.addrs[report_filterlist.used++] =
|
||||
kallsyms_lookup_name(func);
|
||||
report_filterlist.addrs[report_filterlist.used++] = addr;
|
||||
report_filterlist.sorted = false;
|
||||
|
||||
raw_spin_unlock_irqrestore(&report_filterlist_lock, flags);
|
||||
|
|
Loading…
Add table
Reference in a new issue