mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-21 14:43:53 +00:00
IEC 61508,ISO 26262 standards highly recommend single-exit rule. Reduce the count of the "return entries". Fix the violations which is comply with the cases list below: 1.Function has 2 return entries. 2.The first return entry is used to return the error code of checking variable whether is valid. Fix the violations in "if else" format. V1->V2: update the git comment to describe why comply with the single-exit rule. V2->V3: update the git comment title to give a scope declaration of this patch. Tracked-On: #861 Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Reviewed-by: Li, Fei1 <fei1.li@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com> |
||
---|---|---|
.. | ||
hv_main.c | ||
hypercall.c | ||
io_request.c | ||
ptdev.c | ||
schedule.c | ||
softirq.c | ||
stack_protector.c | ||
static_checks.c | ||
trusty_hypercall.c | ||
vm_load.c |