acrn-hypervisor/hypervisor/dm/vpci
Huihuang Shi 8dfb9bd9c0 hv: dm: 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.
V1->V2:
    make the return value match to int32_t

Tracked-On: #861
Signed-off-by: Huihuang Shi <huihuang.shi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2018-11-29 15:03:48 +08:00
..
core.c hv: fix MISRA-C violations in vpci code: 93S, 331S and 612S 2018-11-15 08:58:32 +08:00
hostbridge.c hv: fix MISRA-C violations in vpci code: Function pointer is of wrong type 2018-11-15 08:58:32 +08:00
msi.c hv: dm: fix "Procedure has more than one exit point" 2018-11-29 15:03:48 +08:00
msix.c hv: msix: fix "Procedure has more than one exit point" 2018-11-28 14:34:12 +08:00
partition_mode.c hv: fix MISRA-C violations in vpci code: 93S, 331S and 612S 2018-11-15 08:58:32 +08:00
pci_priv.h hv: fix misrac violations in vcpi code 2018-11-01 21:22:10 +08:00
pci_pt.c hv: fix MISRA-C violations in vpci code: Function pointer is of wrong type 2018-11-15 08:58:32 +08:00
sharing_mode.c hv: dm: fix "Procedure has more than one exit point" 2018-11-29 15:03:48 +08:00
vpci.c hv: vpci: revert the temporary workaround of handling I/O port CF9 2018-11-19 09:34:34 +08:00