mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-29 12:35:48 +00:00
hv: cpu: remove unnecessary cpu_id valid check
Remove unnecessary cpu_id valid check if the cpu_id comes from get_cpu_id(). Signed-off-by: Li, Fei1 <fei1.li@intel.com>
This commit is contained in:
@@ -78,10 +78,6 @@ struct trace_entry {
|
||||
static inline bool
|
||||
trace_check(uint16_t cpu_id, __unused uint32_t evid)
|
||||
{
|
||||
if (cpu_id >= phys_cpu_num) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (per_cpu(sbuf, cpu_id)[ACRN_TRACE] == NULL) {
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user