mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2024-12-29 17:22:07 +00:00
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
@ -179,8 +179,7 @@ static ssize_t insert_report_filterlist(const char *func)
|
||||
}
|
||||
|
||||
/* 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…
Reference in New Issue
Block a user