mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-06 09:06:30 +00:00
hv: guest: fix "Procedure has more than one exit point"
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. Tracked-On: #861 Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -193,7 +193,7 @@ struct instr_emul_ctxt {
|
||||
struct acrn_vcpu *vcpu;
|
||||
};
|
||||
|
||||
int emulate_instruction(const struct acrn_vcpu *vcpu);
|
||||
int32_t emulate_instruction(const struct acrn_vcpu *vcpu);
|
||||
int decode_instruction(struct acrn_vcpu *vcpu);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user