Files
acrn-hypervisor/hypervisor/common
Zide Chen 1d2aea1ebd hv: some coding refinement in hypercall.c
- since now we don't need to print error messages if copy_to/from_gpa()
  fails, then in many cases we can simplify the function return handling.

  In the following example, my fix could change the 'ret' value from
  the original '-1' to the actual errno returned from copy_to_gpa(). But
  this is valid. Ideally we may replace all '-1' with the actual errno.

  - if (copy_to_gpa() < 0) {
  -	pr_err("error messages");
  -	ret = -1;
  - } else {
  -	ret = 0;
  - }
  + ret = copy_to_gpa();

- in most cases, 'ret' is declared with a default value 0 or -1, then the
  redundant assignment statements can be removed.

- replace white spaces with tabs.

Tracked-On: #3854
Signed-off-by: Zide Chen <zide.chen@intel.com>
2020-03-30 13:19:01 +08:00
..
2020-02-23 16:27:57 +08:00
2020-01-07 11:23:32 +08:00
2020-02-25 09:08:14 +08:00
2020-02-25 09:11:32 +08:00
2020-02-25 09:11:32 +08:00
2020-01-14 10:21:23 +08:00
2020-02-26 09:24:16 +08:00