mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 12:03:54 +02:00
drm/i915/gvt/scheduler: Remove unnecessary NULL checks in sr_oa_regs
The checks are misleading and not required [1]. [1] https://lkml.org/lkml/2018/3/19/1792 Addresses-Coverity-ID: 1466017 Cc: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Zhi Wang <zhi.a.wang@intel.com>
This commit is contained in:
parent
96bebe39b2
commit
41e7ccc19c
|
|
@ -97,7 +97,7 @@ static void sr_oa_regs(struct intel_vgpu_workload *workload,
|
||||||
i915_mmio_reg_offset(EU_PERF_CNTL6),
|
i915_mmio_reg_offset(EU_PERF_CNTL6),
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!workload || !reg_state || workload->ring_id != RCS)
|
if (workload->ring_id != RCS)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (save) {
|
if (save) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user