Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
hv: vlapic: 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>
  • Loading branch information
Shawnshh authored and lijinxia committed Nov 27, 2018
1 parent 3d1332f commit 2afa717
Show file tree
Hide file tree
Showing 2 changed files with 267 additions and 266 deletions.

0 comments on commit 2afa717

Please sign in to comment.