acrn-hypervisor/hypervisor/dm
Huihuang Shi 5b6c611a1d hv: msix: 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.

V1->V2:
  remove the unrelated code.

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-11-28 14:34:12 +08:00
..
hw hv: fix MISRA-C violations in vpci code: implicit conversion 2018-11-15 08:58:32 +08:00
vpci hv: msix: fix "Procedure has more than one exit point" 2018-11-28 14:34:12 +08:00
vioapic.c hv: vioapic: clean up HV_DEBUG usage 2018-11-23 12:21:02 +08:00
vpic.c hv:Add vpin to ptdev entry mapping for vpic/vioapic 2018-11-22 11:26:04 +08:00
vrtc.c hv:Replace dynamic memory with static for port io 2018-11-09 13:05:04 +08:00