drm/i915/gvt: Replace duplicated code with exist function
authorPing Gao <ping.a.gao@intel.com>
Tue, 4 Jul 2017 08:11:16 +0000 (16:11 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 10 Aug 2017 02:26:08 +0000 (10:26 +0800)
commit64d8bb83b61d3fcb0babaa88c4e8b423e7d2721e
tree10a60c9d1615e0303b3608fa0af8b843019a2728
parent87e919d741f9bf07f8aad6f096c6ebc3345a9856
drm/i915/gvt: Replace duplicated code with exist function

Use the exist function intel_gvt_ggtt_validate_range to replace
these duplicated code that do the same thing.

Signed-off-by: Ping Gao <ping.a.gao@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/cmd_parser.c