drm/i915/gvt: remove unused variable 'execlist'
authorPing Gao <ping.a.gao@intel.com>
Thu, 27 Oct 2016 01:54:22 +0000 (09:54 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 7 Nov 2016 06:16:57 +0000 (14:16 +0800)
Remove the variable 'execlist' as it's unused in function
vgpu_has_pending_workload.

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

index 1df6a5460f3e110ad6e3a2b82e2cee08e87e83b6..678b0be853763ab4b0381a9a4f25880ea075c7a3 100644 (file)
 
 static bool vgpu_has_pending_workload(struct intel_vgpu *vgpu)
 {
-       struct intel_vgpu_execlist *execlist;
        enum intel_engine_id i;
        struct intel_engine_cs *engine;
 
        for_each_engine(engine, vgpu->gvt->dev_priv, i) {
-               execlist = &vgpu->execlist[i];
                if (!list_empty(workload_q_head(vgpu, i)))
                        return true;
        }