drm/i915/gvt/scheduler: Remove unnecessary NULL checks in sr_oa_regs
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Thu, 22 Mar 2018 18:21:54 +0000 (13:21 -0500)
committerZhi Wang <zhi.a.wang@intel.com>
Mon, 23 Apr 2018 05:09:35 +0000 (13:09 +0800)
commit41e7ccc19c2a52b13b77f2a489a466b140d2d235
tree92dda16047a31b3605fe5c4f30d6aac12f35e235
parent96bebe39b2f4533af14c509061cd2b551ca81e8d
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>
drivers/gpu/drm/i915/gvt/scheduler.c