acrn-hypervisor/hypervisor/debug
Huihuang Shi fe3de67906 hv: debug: 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>
2018-12-03 11:10:04 +08:00
..
console.c hv: clean up function definitions in console.h 2018-11-28 14:57:49 +08:00
dump.c hv: clean up function definitions in dump.h 2018-11-28 14:57:49 +08:00
hypercall.c hv: hypercall: clean up HV_DEBUG usage 2018-11-20 10:01:50 +08:00
logmsg.c debug: rename struct logmsg to struct acrn_logmsg_ctl 2018-11-27 09:32:27 +08:00
Makefile hv: enhance Makefile to compile debug/release into 2 libraries 2018-11-23 08:47:34 +08:00
npk_log.c hv: clean up function definitions in npk_log.h 2018-11-28 14:57:49 +08:00
printf.c fix "Casting operation to a pointer" 2018-11-06 13:37:33 +08:00
profiling.c hv: debug: fix "Procedure has more than one exit point" 2018-12-03 11:10:04 +08:00
sbuf.c hv:Replace dynamic memory with static for sbuf 2018-11-01 11:21:49 +08:00
shell_priv.h debug: Remove early logbuf support 2018-11-27 09:32:27 +08:00
shell.c hv:Rename ptdev to ptirq for some variables and structures 2018-11-30 13:27:49 +08:00
trace.c hv: clean up function definitions in trace.h 2018-11-28 14:57:49 +08:00
uart16550.c HV: allow disabling serial port via Kconfig 2018-11-30 15:00:05 +08:00
uart16550.h hv: fix integer violations 2018-11-02 11:05:32 +08:00
vuart.c HV: Add vuart port base address/IRQ Kconfig options 2018-11-16 10:24:48 +08:00