commit | eb3f05171c2e84f0114403df0fea942479fdaa3e | [log] [tgz] |
---|---|---|
author | Pei Zhang <pei.zhang@intel.com> | Mon Dec 11 17:15:02 2017 +0800 |
committer | Zhenyu Wang <zhenyuw@linux.intel.com> | Mon Dec 11 17:17:31 2017 +0800 |
tree | 2a8d60ccf48fd6a9ae2563e7f46bef6b2b6fe246 | |
parent | 6ee942d5f7e3e630d3a2517e75969ce5d07c87d6 [diff] |
drm/i915/gvt: refine function emulate_mmio_read/write These 2 functions are coded by multiple person in multiple patches. The 'return' and 'goto err' are mix-used in same place, which cause the function looks disorder. Unify to use only 'goto' so that the gvt lock is acquired in one place and released in one place. Signed-off-by: Pei Zhang <pei.zhang@intel.com> Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>