Commit e480a14f authored by Kim Phillips's avatar Kim Phillips Committed by Xie Haocheng
Browse files

perf/amd/uncore: Simplify code, use free_percpu()'s built-in check for NULL

mainline inclusion
from mainline-v5.15-rc1
commit 6cf295b2
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I65D55


CVE: NA

--------------------------------

free_percpu() has its own check for NULL, no need to open-code it.

Signed-off-by: default avatarKim Phillips <kim.phillips@amd.com>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20210817221048.88063-5-kim.phillips@amd.com


Signed-off-by: default avatarXie Haocheng <haocheng.xie@amd.com>
parent 2a3e9268
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment