drm/i915/gvt: refine function emulate_mmio_read/write
authorPei Zhang <pei.zhang@intel.com>
Mon, 11 Dec 2017 09:15:02 +0000 (17:15 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 11 Dec 2017 09:17:31 +0000 (17:17 +0800)
commiteb3f05171c2e84f0114403df0fea942479fdaa3e
tree2a8d60ccf48fd6a9ae2563e7f46bef6b2b6fe246
parent6ee942d5f7e3e630d3a2517e75969ce5d07c87d6
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>
drivers/gpu/drm/i915/gvt/mmio.c