mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-04 23:24:56 +00:00
hv: schedule: minor fix about the return type of need_offline
ACRN Coding guidelines requires type conversion shall be explicity. However, there's no need for this case since we could return bool directly. Tracked-On: #1842 Signed-off-by: Li, Fei1 <fei1.li@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
committed by
ACRN System Integration
parent
e69b3dcf67
commit
0eb0854858
@@ -136,7 +136,7 @@ void make_pcpu_offline(uint16_t pcpu_id)
|
||||
}
|
||||
}
|
||||
|
||||
int32_t need_offline(uint16_t pcpu_id)
|
||||
bool need_offline(uint16_t pcpu_id)
|
||||
{
|
||||
struct sched_context *ctx = &per_cpu(sched_ctx, pcpu_id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user